summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/init_functions b/init_functions
index c0f10e9..72bf6ae 100644
--- a/init_functions
+++ b/init_functions
@@ -23,5 +23,7 @@ poll_device() {
}
launch_interactive_shell() {
- PS1='[ramfs \W]\$ ' /bin/sh -i
+ PS1='[ramfs \W]\$ '
+ [ "$1" = "--exec" ] && exec /bin/sh -i
+ /bin/sh -i
}