From 0584c96ca68fd2afe19cec19c35f929e068d5609 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 16 Mar 2012 22:13:04 +0100 Subject: [PATCH] Extract function do_rundebugshell --- defaults/initrd.scripts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 } -- 2.26.2