mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
busybox:
- add init script to start shell for textmode (move from /sbin/init) - remove unneeded runlevel configure
This commit is contained in:
parent
ed1a2a5304
commit
8129009ebd
15
packages/sysutils/busybox/init.d/99_shell
Executable file
15
packages/sysutils/busybox/init.d/99_shell
Executable 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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user