diff options
author | Aaron Ball <nullspoon@oper.io> | 2016-12-29 13:53:48 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2016-12-29 13:53:48 -0700 |
commit | b90d32757dd219c82e187fe247c28c97f6d58cfe (patch) | |
tree | d38cc73b12943ce631ade6d211de6287a6e53de0 | |
parent | 602764f9fece059104b8bf31c2eeefdbd56081f3 (diff) | |
download | mkinitramfs-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-x | init | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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. |