diff options
author | Bill Nottingham <notting@redhat.com> | 2008-09-23 15:01:34 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-09-23 15:01:34 -0400 |
commit | be3157c181cbc8f1aa00e95542641128bcd12406 (patch) | |
tree | b4ae01f4d95253a13a1bdcae0455cebb9b6e4d61 /rc.d/init.d/halt | |
parent | b86495580f60058e33c3a5454eda38ffa53d064b (diff) | |
download | initscripts-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-x | rc.d/init.d/halt | 7 |
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 |