slitaz-boot-scripts rev 61
hwconf: use soundconf -M to select a driver
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 20 11:00:15 2008 +0000 (2008-03-20) |
parents | 87bb2aa0140a |
children | 93da94fb7ecb |
files | etc/init.d/hwconf.sh |
line diff
1.1 --- a/etc/init.d/hwconf.sh Tue Mar 18 21:42:47 2008 +0100 1.2 +++ b/etc/init.d/hwconf.sh Thu Mar 20 11:00:15 2008 +0000 1.3 @@ -25,9 +25,10 @@ 1.4 noconf) 1.5 echo "Sound configuration is disable from cmdline...";; 1.6 *) 1.7 - echo "Using sound kernel module $DRIVER..." 1.8 - modprobe snd-$DRIVER 1.9 - echo "snd-$DRIVER" > /var/lib/sound-card-driver;; 1.10 + if [ -x /usr/sbin/soundconf ]; then 1.11 + echo "Using sound kernel module $DRIVER..." 1.12 + /usr/sbin/soundconf -M $DRIVER 1.13 + fi;; 1.14 esac 1.15 elif [ ! -f /var/lib/sound-card-driver ]; then 1.16 if [ -x /usr/sbin/soundconf ]; then