# HG changeset patch # User Christophe Lincoln # Date 1196935675 -3600 # Node ID 337a083dc89fa89f3b10753e2edc7a795bd1897b # Parent a5e2677812ab1085f2fef0da15b0fcf5609292c5 Fixed hwconf.sh 'status' + sound=no + rcS msg diff -r a5e2677812ab -r 337a083dc89f etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Mon Dec 03 12:19:16 2007 +0100 +++ b/etc/init.d/bootopts.sh Thu Dec 06 11:07:55 2007 +0100 @@ -8,9 +8,8 @@ mount_home() { echo "Home has been specified to $DEVICE..." - echo -n "Sleeping 10 s to let the kernel detect the device... " + echo "Sleeping 10 s to let the kernel detect the device... " sleep 10 - status if grep -q "$DEVICE" /proc/partitions ; then echo "Mounting /home on /dev/$DEVICE... " mv /home/hacker /tmp/hacker-home diff -r a5e2677812ab -r 337a083dc89f etc/init.d/hwconf.sh --- a/etc/init.d/hwconf.sh Mon Dec 03 12:19:16 2007 +0100 +++ b/etc/init.d/hwconf.sh Thu Dec 06 11:07:55 2007 +0100 @@ -1,17 +1,25 @@ #!/bin/sh # /etc/init.d/hwconf.sh - SliTaz hardware autoconfiguration. # +. /etc/init.d/rc.functions # Sound configuration stuff. First check if sound=no and remoce all sound # Kernel modules. # -if grep -q "sound=no" /proc/cmdline; then +if grep -q -w "sound=no" /proc/cmdline; then echo -n "Removing all sound kernel modules..." rm -rf /lib/modules/`uname -r`/kernel/sound status + echo -n "Removing all sound packages..." + for i in $(grep -l '^DEPENDS=.*alsa-lib' /var/lib/tazpkg/installed/*/receipt) ; do + pkg=${i#/var/lib/tazpkg/installed/} + echo 'y' | tazpkg remove ${pkg%/*} >- + done + echo 'y' | tazpkg remove alsa-lib >- + status else # Config or not config - if grep -q "sound=noconf" /proc/cmdline; then + if grep -q -w "sound=noconf" /proc/cmdline; then echo "Sound configuration is disable from cmdline..." elif [ ! -f /var/lib/sound-card-driver ]; then if [ -f /usr/sbin/soundconf ]; then