From 5000dc1138f5666978ebebb63ac25db5d7632c11 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 24 Aug 2009 12:37:18 -0400 Subject: Don't try and save mixer settings if it's not writable. (#515771) --- rc.d/init.d/halt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d') 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 -- cgit v1.2.1