aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/halt7
1 files changed, 4 insertions, 3 deletions
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