From 7dc29ce70857b58de9a439eea505c94b6e9ab9be Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 11 Dec 2009 01:08:22 +0100 Subject: [PATCH] busybox: - start shell on tty3 only in debug mode --- packages/sysutils/busybox/scripts/init | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 41d73d492b..a137f54005 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -34,12 +34,14 @@ echo localhost > /proc/sys/kernel/hostname # starting debugging shell -# if test "$DEBUG" = yes; then -# echo "### it seems we are running in Debug mode ###" -# echo "### starting debugging shell on console 3 ###" -# echo "### ...... switch with ctrl-alt-f3 ...... ###" + if test "$DEBUG" = yes; then + echo "#############################################" + echo "### it seems we are running in Debug mode ###" + echo "### starting debugging shell on console 3 ###" + echo "### ...... switch with ctrl-alt-f3 ...... ###" + echo "#############################################" exec /bin/sh /dev/tty3 2>&1 & -# fi + fi # getting runlevel RUNLEVEL="openelec" @@ -66,6 +68,8 @@ done # when we have an problem we must look where is this problem + echo "###################################" echo "### it seems we have an problem ###" echo "### starting emergency shell... ###" + echo "###################################" exec /bin/sh /dev/tty3 2>&1