aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-08-24 12:37:18 -0400
committerBill Nottingham <notting@redhat.com>2009-08-24 12:37:18 -0400
commit5000dc1138f5666978ebebb63ac25db5d7632c11 (patch)
tree013075cdb08231abbbc3f0be5dc88030b3600159 /rc.d/init.d
parent0cd211b1c30a1e1da89f1b73ada0bf4e563bc682 (diff)
downloadinitscripts-5000dc1138f5666978ebebb63ac25db5d7632c11.tar
initscripts-5000dc1138f5666978ebebb63ac25db5d7632c11.tar.gz
initscripts-5000dc1138f5666978ebebb63ac25db5d7632c11.tar.bz2
initscripts-5000dc1138f5666978ebebb63ac25db5d7632c11.tar.xz
initscripts-5000dc1138f5666978ebebb63ac25db5d7632c11.zip
Don't try and save mixer settings if it's not writable. (#515771)
Diffstat (limited to 'rc.d/init.d')
-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 01e64bf3..aa16737a 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -65,7 +65,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