From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance
  • R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

bootable/newinstaller


Commit MetaInfo

Revisione890de494a0d1d320f51aa96d38918b928634184 (tree)
Time2020-05-13 00:09:26
AuthorChih-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.

Change Summary

Incremental Difference

--- 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