aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-11-22 16:17:40 +0000
committerBill Nottingham <notting@redhat.com>1999-11-22 16:17:40 +0000
commit3182297ebe41b6f16041823e66dfe5230383acde (patch)
tree75fc4460728337b4a025c9f45fc37d8f647a0708
parenta10fe9fff25c3d533274ebfb034af12b1a8b69b0 (diff)
downloadinitscripts-3182297ebe41b6f16041823e66dfe5230383acde.tar
initscripts-3182297ebe41b6f16041823e66dfe5230383acde.tar.gz
initscripts-3182297ebe41b6f16041823e66dfe5230383acde.tar.bz2
initscripts-3182297ebe41b6f16041823e66dfe5230383acde.tar.xz
initscripts-3182297ebe41b6f16041823e66dfe5230383acde.zip
load mixer settings for monolithic sound too
-rwxr-xr-xrc.d/rc.sysinit9
1 files 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