OSDN Git Service
(root)
/
android-x86
/
bootable-newinstaller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3119e2f
)
init: fall back to busybox's shell
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Tue, 12 May 2020 15:09:26 +0000
(23:09 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Tue, 12 May 2020 15:09:26 +0000
(23:09 +0800)
Run busybox's shell if AOSP's shell fails to run. This makes
debug shell more reliable.
initrd/init
patch
|
blob
|
history
diff --git
a/initrd/init
b/initrd/init
index
fd2da25
..
e8899a7
100755
(executable)
--- a/
initrd/init
+++ b/
initrd/init
@@
-135,6
+135,7
@@
debug_shell()
if [ -x system/bin/sh ]; then
echo Running MirBSD Korn Shell...
USER="($1)" system/bin/sh -l 2>&1
+ [ $? -ne 0 ] && /bin/sh 2>&1
else
echo Running busybox ash...
sh 2>&1