Extract function do_rundebugshell

cleanup-cruft
Sebastian Pipping 13 years ago
parent 38205c74b4
commit 0584c96ca6

@ -1000,12 +1000,16 @@ setup_md_device() {
fi fi
} }
do_rundebugshell() {
good_msg 'Type "exit" to continue with normal bootup.'
[ -x /bin/sh ] && /bin/sh || /bin/ash
}
rundebugshell() { rundebugshell() {
if [ -n "$DEBUG" ] if [ -n "$DEBUG" ]
then then
good_msg 'Starting debug shell as requested by "debug" option.' good_msg 'Starting debug shell as requested by "debug" option.'
good_msg 'Type "exit" to continue with normal bootup.' do_rundebugshell
[ -x /bin/sh ] && /bin/sh || /bin/ash
fi fi
} }

Loading…
Cancel
Save