slitaz-boot-scripts rev 140
hwconf.sh: we can be more short with sound stuff
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 27 00:53:21 2009 +0100 (2009-02-27) |
parents | 7f56f98aef11 |
children | 6038353267b7 |
files | etc/init.d/hwconf.sh |
line diff
1.1 --- a/etc/init.d/hwconf.sh Wed Feb 25 00:34:02 2009 +0100 1.2 +++ b/etc/init.d/hwconf.sh Fri Feb 27 00:53:21 2009 +0100 1.3 @@ -37,8 +37,6 @@ 1.4 esac 1.5 # Sound card may already be detected by PCI-detect. 1.6 elif [ -d /proc/asound ]; then 1.7 - cp /proc/asound/modules /var/lib/sound-card-driver 1.8 - /usr/bin/amixer >/dev/null || /usr/sbin/soundconf 1.9 # Restore sound config for installed system. 1.10 if [ -s /etc/asound.state ]; then 1.11 echo -n "Restoring last alsa configuration..." 1.12 @@ -47,14 +45,11 @@ 1.13 else 1.14 /usr/sbin/setmixer 1.15 fi 1.16 -# Start soundconf to config driver and load module for Live mode 1.17 -# if not yet detected. 1.18 -elif [ ! -s /var/lib/sound-card-driver ]; then 1.19 - if [ -x /usr/sbin/soundconf ]; then 1.20 - /usr/sbin/soundconf 1.21 - else 1.22 - echo "Unable to find: /usr/sbin/soundconf" 1.23 - fi 1.24 + # Start soundconf to config driver and load module for Live mode 1.25 + # if not yet detected. 1.26 + /usr/bin/amixer >/dev/null || /usr/sbin/soundconf 1.27 +else 1.28 + echo "Unable to configure sound card." 1.29 fi 1.30 1.31 # Screen size config for slim/Xvesa (last config dialog before login).