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