Extract function do_rundebugshell
authorSebastian Pipping <sebastian@pipping.org>
Fri, 16 Mar 2012 21:13:04 +0000 (22:13 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 16 Mar 2012 21:13:04 +0000 (22:13 +0100)
defaults/initrd.scripts

index 0e1e5f998c7f092e61d5710e71232fd78fdd78b5..8ce8ac6277ec946563f9da54a01adf6505f4a577 100755 (executable)
@@ -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
 }