slitaz-boot-scripts rev 81
PCI sound card my detec but setmixer dont work, we need soundconf
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 13 02:51:52 2008 +0200 (2008-05-13) |
parents | 5054ffdd04ee |
children | 95e5de419e64 |
files | etc/init.d/hwconf.sh |
line diff
1.1 --- a/etc/init.d/hwconf.sh Tue May 13 01:06:41 2008 +0200 1.2 +++ b/etc/init.d/hwconf.sh Tue May 13 02:51:52 2008 +0200 1.3 @@ -10,7 +10,7 @@ 1.4 status 1.5 fi 1.6 1.7 -# Detect PCI devices and load kernel module only at first boot 1.8 +# Detect PCI devices and load kernel module only at first boot 1.9 # or in LiveCD mode. 1.10 if [ ! -s /var/lib/detected-modules ]; then 1.11 echo "Detecting PCI devices..." 1.12 @@ -43,7 +43,7 @@ 1.13 fi 1.14 fi 1.15 1.16 -# Sound configuration stuff. First check if sound=no and remove all 1.17 +# Sound configuration stuff. First check if sound=no and remove all 1.18 # sound Kernel modules. 1.19 if grep -q "sound=" /proc/cmdline; then 1.20 DRIVER=`cat /proc/cmdline | sed 's/.*sound=\([^ ]*\).*/\1/'` 1.21 @@ -73,6 +73,9 @@ 1.22 elif [ -d /proc/asound ]; then 1.23 cp /proc/asound/modules /var/lib/sound-card-driver 1.24 /usr/sbin/setmixer 1.25 + if /usr/sbin/setmixer | grep -q "error"; then 1.26 + /usr/sbin/soundconf 1.27 + fi 1.28 # Start soundconf to config driver and load module for Live mode 1.29 # if not yet detected. 1.30 elif [ ! -s /var/lib/sound-card-driver ]; then