Extract function do_rundebugshell

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

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

Loading…
Cancel
Save