aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-08-24 12:37:18 -0400
committerBill Nottingham <notting@redhat.com>2009-12-04 19:37:36 -0500
commit9fc40620f92e2aa263aea8bcd21fb9ead4699519 (patch)
treeecd56b683c517ce3be73815d4b4baa50c6f7a66a
parentdd5cb19c8f88dcfbb460c067fa372a0459effc6f (diff)
downloadinitscripts-9fc40620f92e2aa263aea8bcd21fb9ead4699519.tar
initscripts-9fc40620f92e2aa263aea8bcd21fb9ead4699519.tar.gz
initscripts-9fc40620f92e2aa263aea8bcd21fb9ead4699519.tar.bz2
initscripts-9fc40620f92e2aa263aea8bcd21fb9ead4699519.tar.xz
initscripts-9fc40620f92e2aa263aea8bcd21fb9ead4699519.zip
Don't try and save mixer settings if it's not writable. (#515771)
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index aba3d3ea..0a4fdc8e 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -76,7 +76,7 @@ action $"Sending all processes the KILL signal..." /sbin/killall5 -9
/sbin/halt -w
# Save mixer settings, here for lack of a better place.
-if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl ]; then
+if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi