Files
Arch-R/packages/sysutils/bash/init.d/00_debugshell
Stephan Raue c69817eeb2 bash:
- moving init scripts to start shell from busybox
2010-05-09 01:35:50 +02:00

20 lines
440 B
Plaintext
Executable File

# 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