aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-09-23 15:01:34 -0400
committerBill Nottingham <notting@redhat.com>2008-09-23 15:01:34 -0400
commitbe3157c181cbc8f1aa00e95542641128bcd12406 (patch)
treeb4ae01f4d95253a13a1bdcae0455cebb9b6e4d61 /rc.d/init.d/halt
parentb86495580f60058e33c3a5454eda38ffa53d064b (diff)
downloadinitscripts-be3157c181cbc8f1aa00e95542641128bcd12406.tar
initscripts-be3157c181cbc8f1aa00e95542641128bcd12406.tar.gz
initscripts-be3157c181cbc8f1aa00e95542641128bcd12406.tar.bz2
initscripts-be3157c181cbc8f1aa00e95542641128bcd12406.tar.xz
initscripts-be3157c181cbc8f1aa00e95542641128bcd12406.zip
Use alsactl to save sound settings. (#462677, <jkysela@redhat.com>)
Diffstat (limited to 'rc.d/init.d/halt')
-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