# 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