From e890de494a0d1d320f51aa96d38918b928634184 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Tue, 12 May 2020 23:09:26 +0800 Subject: [PATCH] init: fall back to busybox's shell Run busybox's shell if AOSP's shell fails to run. This makes debug shell more reliable. --- initrd/init | 1 + 1 file changed, 1 insertion(+) diff --git a/initrd/init b/initrd/init index fd2da25..e8899a7 100755 --- 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 -- 2.11.0