- add init script to start shell for textmode (move from /sbin/init)
- remove unneeded runlevel configure
This commit is contained in:
Stephan Raue 2010-03-15 02:11:05 +01:00
parent ed1a2a5304
commit 8129009ebd
2 changed files with 15 additions and 9 deletions

View File

@ -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 >/dev/tty$TTY 2>&1
done

View File

@ -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 >/dev/tty1 2>&1