- start debugshell in debugmode
- cosmetics
This commit is contained in:
Stephan Raue 2010-03-15 02:09:49 +01:00
parent 1a83044fd0
commit ed1a2a5304

View File

@ -1,15 +1,17 @@
# start the ACPI daemon subsystem
# start debug shell
#
# runlevels: openelec, text, debug
# runlevels: openelec, debug, text
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 >/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 >/dev/tty$TTY 2>&1 &
fi