summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init14
1 files changed, 6 insertions, 8 deletions
diff --git a/init b/init
index 3f594c1..234a6ff 100644
--- a/init
+++ b/init
@@ -14,7 +14,7 @@ export CMDLINE
# Used so hooks can override params to kinit
export kinit_params=""
export root=""
-echo "/bin/modprobe" > /proc/sys/kernel/modprobe
+echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
for cmd in $CMDLINE; do
case "$cmd" in
@@ -110,11 +110,11 @@ if [ ! -e "${root}" ]; then
PS1="ramfs$ " /bin/sh -i
msg "Rebooting..."
/bin/reboot
-else
- msg ":: Initramfs Completed - control passing to kinit"
- if [ -f "/message" ]; then
- msg "$(cat /message)"
- fi
+fi
+
+msg ":: Initramfs Completed - control passing to kinit"
+if [ -f "/message" ]; then
+ msg "$(cat /message)"
fi
#Special handling if udev is running
@@ -125,6 +125,4 @@ if [ "x${udevpid}" != "x" ]; then
fi
-echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
-
exec /bin/kinit -- "root=${root}" ${kinit_params} "${runlevel}" > /dev/null 2>&1