diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1998-04-21 01:54:30 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1998-04-21 01:54:30 +0000 |
commit | 1e24754dfeca89eb7dd82adc487f362cd722c3ec (patch) | |
tree | cf0924da90681ae98bd4db31b366a5cbbef634cf | |
parent | 154a71e7b85c17a4d947d8912e981736d5987473 (diff) | |
download | initscripts-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-x | rc.d/rc.sysinit | 9 |
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 |