slitaz-boot-scripts rev 367 5.6.0
Fis sound card config initialization on first boot
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 05 22:08:51 2014 +0200 (2014-05-05) |
parents | 77ba5ad22d40 |
children | 43adefea453d |
files | etc/init.d/system.sh |
line diff
1.1 --- a/etc/init.d/system.sh Mon May 05 22:02:43 2014 +0200 1.2 +++ b/etc/init.d/system.sh Mon May 05 22:08:51 2014 +0200 1.3 @@ -51,15 +51,16 @@ 1.4 /usr/sbin/soundconf -M $DRIVER 1.5 fi ;; 1.6 esac 1.7 -# Sound card may already be detected by PCI-detect. 1.8 +# Sound card may already be detected by kernel/udev 1.9 elif [ -d /proc/asound ]; then 1.10 - # Restore sound config for installed system. 1.11 + # Restore sound config for installed system 1.12 if [ -s /var/lib/alsa/asound.state ]; then 1.13 echo -n "Restoring last alsa configuration..." 1.14 alsactl restore 1.15 status 1.16 else 1.17 - /usr/sbin/setmixer 1.18 + # Initialize sound card 1.19 + alsactl init 1.20 fi 1.21 else 1.22 echo "Unable to configure sound card."