aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1997-11-07 19:46:46 +0000
committerErik Troan <ewt@redhat.com>1997-11-07 19:46:46 +0000
commit1491b10f5258abab32a954ce9c12df3dd3d0945c (patch)
tree7d2e5393918590ef7330cce3d51575d1bff38c8a
parentedb411ffbaba850315c9d682ffa7393feddd5566 (diff)
downloadinitscripts-1491b10f5258abab32a954ce9c12df3dd3d0945c.tar
initscripts-1491b10f5258abab32a954ce9c12df3dd3d0945c.tar.gz
initscripts-1491b10f5258abab32a954ce9c12df3dd3d0945c.tar.bz2
initscripts-1491b10f5258abab32a954ce9c12df3dd3d0945c.tar.xz
initscripts-1491b10f5258abab32a954ce9c12df3dd3d0945c.zip
added sound stuff
-rwxr-xr-xrc.d/rc.sysinit12
1 files changed, 12 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 844ec86d..fabe8c34 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -109,6 +109,18 @@ if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
echo ""
fi
+# load sound modules
+if ! grep -i nomodules /proc/cmdline >/dev/null ; then
+ if [ -n "$USEMODULES" ]; then
+ if grep -s "alias sound" /etc/conf.modules > /dev/null ; then
+ modprobe sound
+ if grep -s "alias midi" /etc/conf.modules > /dev/null ; then
+ modprobe midi
+ fi
+ fi
+ fi
+fi
+
if [ -x /sbin/kerneld -a -n "$USEMODULES" ]; then
/sbin/kerneld
KERNELD=yse