From: Sebastian Pipping Date: Fri, 16 Mar 2012 21:13:04 +0000 (+0100) Subject: Extract function do_rundebugshell X-Git-Tag: v3.4.26~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0584c96ca68fd2afe19cec19c35f929e068d5609;p=genkernel.git Extract function do_rundebugshell --- diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 0e1e5f9..8ce8ac6 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -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 }