From a7a7ec544cbbe106de987a178293a522cf9ff90f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 4 Oct 1999 15:44:15 +0000 Subject: check for aumix-minimal before execution --- rc.d/init.d/halt | 2 +- rc.d/rc.sysinit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 8fd08c6d..3922e008 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -52,7 +52,7 @@ halt -w # Save mixer settings, here for lack of a better place. grep -q "\(sparcaudio\|sound\)" /proc/devices -if [ $? = 0 ]; then +if [ $? = 0 -a -x /bin/aumix-minimal ]; then runcmd "Saving mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -S fi diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 928e0779..b2d2abfa 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -275,7 +275,7 @@ if [ -n "$USEMODULES" ]; then action "Loading sound module" modprobe sound fi # Get mixer settings - if [ $? -eq 0 -a -f /etc/.aumixrc ]; then + if [ $? -eq 0 -a -f /etc/.aumixrc -a -x /bin/aumix-minimal ]; then action "Loading mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null fi if grep -s -q "^alias midi " /etc/conf.modules ; then -- cgit v1.2.1