• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

bootable/newinstaller


Commit MetaInfo

修订版e890de494a0d1d320f51aa96d38918b928634184 (tree)
时间2020-05-13 00:09:26
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

init: fall back to busybox's shell

Run busybox's shell if AOSP's shell fails to run. This makes
debug shell more reliable.

更改概述

差异

--- a/initrd/init
+++ b/initrd/init
@@ -135,6 +135,7 @@ debug_shell()
135135 if [ -x system/bin/sh ]; then
136136 echo Running MirBSD Korn Shell...
137137 USER="($1)" system/bin/sh -l 2>&1
138+ [ $? -ne 0 ] && /bin/sh 2>&1
138139 else
139140 echo Running busybox ash...
140141 sh 2>&1