From 8129009ebd13b107d32e0ac6599a13a6e20dd74a Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 15 Mar 2010 02:11:05 +0100 Subject: [PATCH] busybox: - add init script to start shell for textmode (move from /sbin/init) - remove unneeded runlevel configure --- packages/sysutils/busybox/init.d/99_shell | 15 +++++++++++++++ packages/sysutils/busybox/scripts/init | 9 --------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100755 packages/sysutils/busybox/init.d/99_shell diff --git a/packages/sysutils/busybox/init.d/99_shell b/packages/sysutils/busybox/init.d/99_shell new file mode 100755 index 0000000000..470b942086 --- /dev/null +++ b/packages/sysutils/busybox/init.d/99_shell @@ -0,0 +1,15 @@ +# start text mode shell +# +# runlevels: text + +TTY="1" + +echo "###########################################" +echo "## it seems we are running in Text mode. ##" +echo "## .... starting shell on console $TTY .... ##" +echo "## ...... switch with ctrl-alt-f$TTY ...... ##" +echo "###########################################" + +while true; do + exec /bin/sh /dev/tty$TTY 2>&1 +done diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 596e920f10..4a538b5fdc 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -65,8 +65,6 @@ RUNLEVEL="openelec" if test "$TEXTMODE" = yes; then RUNLEVEL="text" - elif test "$CONFIGURE" = yes; then - RUNLEVEL="configure" fi # starting init scripts for wanted runlevel @@ -80,10 +78,3 @@ test $S_RET -ge $RET && RET=$S_RET fi done - -# if 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/tty1 2>&1