From 3182297ebe41b6f16041823e66dfe5230383acde Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 22 Nov 1999 16:17:40 +0000 Subject: load mixer settings for monolithic sound too --- rc.d/rc.sysinit | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index b7d1cfba..c9c26235 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -280,16 +280,17 @@ fi if [ -n "$USEMODULES" ]; then if grep -s -q "^alias sound " /etc/conf.modules ; then action "Loading sound module" modprobe sound - # Get mixer settings - 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 fi if grep -s -q "^alias midi " /etc/conf.modules ; then action "Loading midi module" modprobe midi fi fi +# Load mixer settings +if [ grep -q "14 sound" /proc/devices 2>/dev/null -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 [ -f /proc/sys/kernel/modprobe ]; then if [ -n "$USEMODULES" ]; then echo "/sbin/modprobe" > /proc/sys/kernel/modprobe -- cgit v1.2.1