From ed1a2a53046074bd9254649f2562488c7b274e95 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 15 Mar 2010 02:09:49 +0100 Subject: [PATCH] busybox: - start debugshell in debugmode - cosmetics --- .../sysutils/busybox/init.d/10_debugshell | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/sysutils/busybox/init.d/10_debugshell b/packages/sysutils/busybox/init.d/10_debugshell index e4b8f2ba91..e4ff04ec09 100755 --- a/packages/sysutils/busybox/init.d/10_debugshell +++ b/packages/sysutils/busybox/init.d/10_debugshell @@ -1,15 +1,17 @@ -# start the ACPI daemon subsystem +# start debug shell # -# runlevels: openelec, text, debug +# runlevels: openelec, debug, text -TTY="3" + TTY="3" -( - echo "#############################################" - echo "### it seems we are running in Debug mode ###" - echo "### starting debugging shell on console $TTY ###" - echo "### ...... switch with ctrl-alt-f$TTY ...... ###" - echo "#############################################" - exec /bin/sh /dev/tty$TTY 2>&1 -)& +if [ "$DEBUG"="yes" ]; then + echo "###########################################" + echo "## it seems we are running in Debug mode ##" + echo "## starting debugging shell on console $TTY ##" + echo "## ...... switch with ctrl-alt-f$TTY ...... ##" + echo "###########################################" + + exec /bin/sh /dev/tty$TTY 2>&1 & + +fi