summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2016-12-29 13:53:48 -0700
committerAaron Ball <nullspoon@oper.io>2016-12-29 13:53:48 -0700
commitb90d32757dd219c82e187fe247c28c97f6d58cfe (patch)
treed38cc73b12943ce631ade6d211de6287a6e53de0
parent602764f9fece059104b8bf31c2eeefdbd56081f3 (diff)
downloadmkinitramfs-b90d32757dd219c82e187fe247c28c97f6d58cfe.tar.gz
mkinitramfs-b90d32757dd219c82e187fe247c28c97f6d58cfe.tar.xz
Fixed interactive support
Interactive was spelled wrong. Also, the bash call was relative, not absolute, which was causing kernel panics when interactive mode was requested.
-rwxr-xr-xinit14
1 files changed, 7 insertions, 7 deletions
diff --git a/init b/init
index 2aa5be2..8168485 100755
--- a/init
+++ b/init
@@ -1,7 +1,7 @@
#!/bin/bash
export DEBUG=0
-export INTERRACTIVE=0
+export INTERACTIVE=0
export ROOTDEV=''
function screen_init {
@@ -61,9 +61,9 @@ function parse_cmdline {
# Enable debug mode (this is gonna be slow)
DEBUG=1
;;
- interractive)
- # Enable interractive mode
- INTERRACTIVE=1
+ interactive)
+ # Enable interactive mode
+ INTERACTIVE=1
;;
esac
done
@@ -148,10 +148,10 @@ function main {
log "New rootdev: ${ROOTDEV}"
fi
- # Drop to interractive shell if requested
- if [[ ${INTERRACTIVE} == 1 ]]; then
+ # Drop to interactive shell if requested
+ if [[ ${INTERACTIVE} == 1 ]]; then
log "Interractive shell requested. Type 'exit' to continue boot sequence."
- bash --norc
+ /bin/bash --norc
fi
# Mount the fakeroot.

Generated by cgit