aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1998-04-21 01:54:30 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1998-04-21 01:54:30 +0000
commit1e24754dfeca89eb7dd82adc487f362cd722c3ec (patch)
treecf0924da90681ae98bd4db31b366a5cbbef634cf
parent154a71e7b85c17a4d947d8912e981736d5987473 (diff)
downloadinitscripts-1e24754dfeca89eb7dd82adc487f362cd722c3ec.tar
initscripts-1e24754dfeca89eb7dd82adc487f362cd722c3ec.tar.gz
initscripts-1e24754dfeca89eb7dd82adc487f362cd722c3ec.tar.bz2
initscripts-1e24754dfeca89eb7dd82adc487f362cd722c3ec.tar.xz
initscripts-1e24754dfeca89eb7dd82adc487f362cd722c3ec.zip
handle kmod in 2.1 kernels nicely
-rwxr-xr-xrc.d/rc.sysinit9
1 files changed, 7 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a3712bad..75e49c97 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -152,8 +152,13 @@ if ! grep -i nomodules /proc/cmdline >/dev/null ; then
fi
if [ -x /sbin/kerneld -a -n "$USEMODULES" ]; then
- /sbin/kerneld
- KERNELD=yes
+ if [ -f /proc/sys/kernel/modprobe ]; then
+ # /proc/sys/kernel/modprobe indicates built-in kmod instead
+ echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
+ else
+ /sbin/kerneld
+ KERNELD=yes
+ fi
fi
# Check filesystems