From be3157c181cbc8f1aa00e95542641128bcd12406 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 23 Sep 2008 15:01:34 -0400 Subject: Use alsactl to save sound settings. (#462677, ) --- rc.d/init.d/halt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rc.d') diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index f0353ca3..f88c04ab 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -76,9 +76,10 @@ action $"Sending all processes the KILL signal..." /sbin/killall5 -9 /sbin/halt -w # Save mixer settings, here for lack of a better place. -grep -q "\(alsa\)" /proc/devices -if [ $? = 0 -a -x /sbin/salsa ]; then - action $"Saving mixer settings" /sbin/salsa -s +if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl ]; then + action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store +elif [ -r /proc/asound/card[0123456789] -a -x /sbin/salsa ]; then + action $"Saving mixer settings" /sbin/salsa -s fi # Save random seed -- cgit v1.2.1