aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-02-04 19:32:20 +0000
committerBill Nottingham <notting@redhat.com>1999-02-04 19:32:20 +0000
commit259187b07b6e775ce79671f910cab860682e3912 (patch)
treec1b9cfd60572db928986e2a2401324e9f5b4f196 /rc.d/init.d
parentae6c4e57c4eda13956a9e5efe0956fd5c90e3a7c (diff)
downloadinitscripts-259187b07b6e775ce79671f910cab860682e3912.tar
initscripts-259187b07b6e775ce79671f910cab860682e3912.tar.gz
initscripts-259187b07b6e775ce79671f910cab860682e3912.tar.bz2
initscripts-259187b07b6e775ce79671f910cab860682e3912.tar.xz
initscripts-259187b07b6e775ce79671f910cab860682e3912.zip
swap workaround; kerneld/kmod fixes
Diffstat (limited to 'rc.d/init.d')
-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."