bootable/newinstaller
修订版 | e890de494a0d1d320f51aa96d38918b928634184 (tree) |
---|---|
时间 | 2020-05-13 00:09:26 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init: fall back to busybox's shell
Run busybox's shell if AOSP's shell fails to run. This makes
debug shell more reliable.
@@ -135,6 +135,7 @@ debug_shell() | ||
135 | 135 | if [ -x system/bin/sh ]; then |
136 | 136 | echo Running MirBSD Korn Shell... |
137 | 137 | USER="($1)" system/bin/sh -l 2>&1 |
138 | + [ $? -ne 0 ] && /bin/sh 2>&1 | |
138 | 139 | else |
139 | 140 | echo Running busybox ash... |
140 | 141 | sh 2>&1 |