Skip to content

Commit

Permalink
Nicer shell prompt in the break/emergency shell
Browse files Browse the repository at this point in the history
  • Loading branch information
brain0 committed Jan 29, 2010
1 parent 64f2af7 commit 7504fd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init
Expand Up @@ -93,7 +93,7 @@ fi

if [ "${break}" = "y" ]; then
echo ":: Break requested, type 'exit' to resume operation"
PS1="ramfs$ " /bin/sh -i
launch_interactive_shell
fi

if [ -f "/message" ]; then
Expand Down Expand Up @@ -145,7 +145,7 @@ if [ -z "${nfsroot}" -a "${root}" != "/dev/nfs" ]; then
echo "You are being dropped to a recovery shell"
echo " Type 'reboot' to reboot"
echo " Type 'exit' to try and continue booting"
PS1="ramfs$ " /bin/sh -i
launch_interactive_shell
msg "Trying to continue (this will most likely fail) ..."
fi
fi
Expand Down
4 changes: 4 additions & 0 deletions init_functions
Expand Up @@ -21,3 +21,7 @@ poll_device() {
done
[ -b "${device}" -o -h "${device}" ]
}

launch_interactive_shell() {
PS1='[ramfs \W]\$ ' /bin/sh -i
}

0 comments on commit 7504fd6

Please sign in to comment.