From 82d39c9ca4162d2d88a6a6596e5ca30acddad6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 24 Oct 2012 21:49:10 +0200 Subject: [PATCH] Fixing stage1 about getting a shell with job control in case of error It's a busybox faq: http://www.busybox.net/FAQ.html#job_control --- modules/system/boot/stage-1-init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/boot/stage-1-init.sh b/modules/system/boot/stage-1-init.sh index 53d528fcd560..c6fc87bf32a9 100644 --- a/modules/system/boot/stage-1-init.sh +++ b/modules/system/boot/stage-1-init.sh @@ -40,10 +40,10 @@ EOF case $reply in f) - exec setsid @shell@ < /dev/$console >/dev/$console 2>/dev/$console ;; + exec setsid @shell@ -c "@shell@ < /dev/$console >/dev/$console 2>/dev/$console" ;; i) echo "Starting interactive shell..." - setsid @shell@ < /dev/$console >/dev/$console 2>/dev/$console || fail + setsid @shell@ -c "@shell@ < /dev/$console >/dev/$console 2>/dev/$console" || fail ;; *) echo "Continuing...";;