projects
/
genkernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38205c7
)
Extract function do_rundebugshell
author
Sebastian Pipping
<sebastian@pipping.org>
Fri, 16 Mar 2012 21:13:04 +0000
(22:13 +0100)
committer
Sebastian Pipping
<sebastian@pipping.org>
Fri, 16 Mar 2012 21:13:04 +0000
(22:13 +0100)
defaults/initrd.scripts
patch
|
blob
|
history
diff --git
a/defaults/initrd.scripts
b/defaults/initrd.scripts
index 0e1e5f998c7f092e61d5710e71232fd78fdd78b5..8ce8ac6277ec946563f9da54a01adf6505f4a577 100755
(executable)
--- 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
}