# HG changeset patch # User Christophe Lincoln # Date 1235692401 -3600 # Node ID ddb05cd33971a2e5f80d239042a161abafa34280 # Parent 7f56f98aef11a8c739f1c4ddfd83449d665a7bcc hwconf.sh: we can be more short with sound stuff diff -r 7f56f98aef11 -r ddb05cd33971 etc/init.d/hwconf.sh --- a/etc/init.d/hwconf.sh Wed Feb 25 00:34:02 2009 +0100 +++ b/etc/init.d/hwconf.sh Fri Feb 27 00:53:21 2009 +0100 @@ -37,8 +37,6 @@ esac # Sound card may already be detected by PCI-detect. elif [ -d /proc/asound ]; then - cp /proc/asound/modules /var/lib/sound-card-driver - /usr/bin/amixer >/dev/null || /usr/sbin/soundconf # Restore sound config for installed system. if [ -s /etc/asound.state ]; then echo -n "Restoring last alsa configuration..." @@ -47,14 +45,11 @@ else /usr/sbin/setmixer fi -# Start soundconf to config driver and load module for Live mode -# if not yet detected. -elif [ ! -s /var/lib/sound-card-driver ]; then - if [ -x /usr/sbin/soundconf ]; then - /usr/sbin/soundconf - else - echo "Unable to find: /usr/sbin/soundconf" - fi + # Start soundconf to config driver and load module for Live mode + # if not yet detected. + /usr/bin/amixer >/dev/null || /usr/sbin/soundconf +else + echo "Unable to configure sound card." fi # Screen size config for slim/Xvesa (last config dialog before login).