Files
Arch-R/packages/sysutils/busybox/init.d/00_debugshell
Stephan Raue 9df8b527f8 busybox:
- change runlevel "text" to "textmode"
- cosmetics
2010-03-25 09:37:33 +01:00

18 lines
422 B
Plaintext
Executable File

# start debug shell
#
# runlevels: openelec, textmode
TTY="3"
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 /sbin/getty -n -l /bin/sh 38400 tty$TTY &
fi