# HG changeset patch # User Christophe Lincoln # Date 1234909613 -3600 # Node ID d3bf7f751e5fdced198f7462150434d9736c12f7 # Parent d549fce3ce2028db163ffab28060d788cb5a6821 Fix: restore sound mixer config and dont erase it just after diff -r d549fce3ce20 -r d3bf7f751e5f etc/init.d/hwconf.sh --- a/etc/init.d/hwconf.sh Tue Feb 17 21:40:18 2009 +0100 +++ b/etc/init.d/hwconf.sh Tue Feb 17 23:26:53 2009 +0100 @@ -3,13 +3,6 @@ # . /etc/init.d/rc.functions -# Restore sound config for installed system. -if [ -s /var/lib/sound-card-driver ]; then - echo -n "Restoring last alsa configuration..." - alsactl restore - status -fi - # Detect PCI devices and load kernel module only at first boot # or in LiveCD mode. if [ ! -s /var/lib/detected-modules ]; then @@ -79,7 +72,14 @@ elif [ -d /proc/asound ]; then cp /proc/asound/modules /var/lib/sound-card-driver /usr/bin/amixer >/dev/null || /usr/sbin/soundconf - /usr/sbin/setmixer + # Restore sound config for installed system. + if [ -s /etc/asound.state ]; then + echo -n "Restoring last alsa configuration..." + alsactl restore + status + 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