Files
Arch-R/packages/sysutils/bash/init.d/00_debugshell

20 lines
440 B
Plaintext
Raw Normal View History

# start debug shell
#
# runlevels: openelec, textmode
. /etc/profile
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/bash 38400 tty$TTY &
fi