aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/single
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/single')
-rwxr-xr-xrc.d/init.d/single6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.d/init.d/single b/rc.d/init.d/single
index a2d4291e..a6376aae 100755
--- a/rc.d/init.d/single
+++ b/rc.d/init.d/single
@@ -26,7 +26,11 @@ rm -f /var/lock/subsys/*
[ -x /usr/bin/clear ] && /usr/bin/clear
# we just killed kerneld :-(
-/etc/rc.d/init.d/kerneld start
+if [ -f /proc/sys/kernel/modprobe ]; then
+ # /proc/sys/kernel/modprobe indicates built-in kmod instead
+ echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
+else
+ /etc/rc.d/init.d/kerneld start
# Now go to the single user level.
echo "Telling INIT to go to single user mode."