diff options
-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 |