aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-02-05 03:27:57 +0000
committerBill Nottingham <notting@redhat.com>2000-02-05 03:27:57 +0000
commitffebb1434d6ff0d62538c8b16db91db22bce535a (patch)
tree2f23d4c90c214227a878c6d1e64e6475e7d0dd47 /rc.d/rc.sysinit
parent32124ac6847499d4fc2e34bc75a8bd43794fe1d4 (diff)
downloadinitscripts-ffebb1434d6ff0d62538c8b16db91db22bce535a.tar
initscripts-ffebb1434d6ff0d62538c8b16db91db22bce535a.tar.gz
initscripts-ffebb1434d6ff0d62538c8b16db91db22bce535a.tar.bz2
initscripts-ffebb1434d6ff0d62538c8b16db91db22bce535a.tar.xz
initscripts-ffebb1434d6ff0d62538c8b16db91db22bce535a.zip
don't run mixer if module doesn't loadr4-91
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 5edfeb59..88949ccf 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -262,9 +262,11 @@ fi
# Load sound modules
#
# I think this now qualifies as over-engineered.
+RETURN=0
alias=`egrep -s "^alias[[:space:]]+sound[[:space:]]+" /etc/conf.modules | awk '{ print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ] ; then
action "Loading sound module ($alias)" modprobe sound
+ RETURN=$?
fi
alias=`egrep -s "^alias[[:space:]]+midi[[:space:]]+" /etc/conf.modules | awk '{ print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ]; then
@@ -272,7 +274,7 @@ if [ -n "$alias" -a "$alias" != "off" ]; then
fi
# Load mixer settings
-if grep -q "\(sparcaudio\|sound\)" /proc/devices 2>/dev/null && [ -f /etc/.aumixrc -a -x /bin/aumix-minimal ]; then
+if grep -q "\(sparcaudio\|sound\)" /proc/devices 2>/dev/null && [ $RETURN -eq 0 -a -f /etc/.aumixrc -a -x /bin/aumix-minimal ]; then
action "Loading mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -L
fi