mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
busybox:
- start shell on tty3 only in debug mode
This commit is contained in:
parent
952c715c9f
commit
7dc29ce708
@ -34,12 +34,14 @@
|
|||||||
echo localhost > /proc/sys/kernel/hostname
|
echo localhost > /proc/sys/kernel/hostname
|
||||||
|
|
||||||
# starting debugging shell
|
# starting debugging shell
|
||||||
# if test "$DEBUG" = yes; then
|
if test "$DEBUG" = yes; then
|
||||||
# echo "### it seems we are running in Debug mode ###"
|
echo "#############################################"
|
||||||
# echo "### starting debugging shell on console 3 ###"
|
echo "### it seems we are running in Debug mode ###"
|
||||||
# echo "### ...... switch with ctrl-alt-f3 ...... ###"
|
echo "### starting debugging shell on console 3 ###"
|
||||||
|
echo "### ...... switch with ctrl-alt-f3 ...... ###"
|
||||||
|
echo "#############################################"
|
||||||
exec /bin/sh </dev/tty3 >/dev/tty3 2>&1 &
|
exec /bin/sh </dev/tty3 >/dev/tty3 2>&1 &
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# getting runlevel
|
# getting runlevel
|
||||||
RUNLEVEL="openelec"
|
RUNLEVEL="openelec"
|
||||||
@ -66,6 +68,8 @@
|
|||||||
done
|
done
|
||||||
|
|
||||||
# when we have an problem we must look where is this problem
|
# when we have an problem we must look where is this problem
|
||||||
|
echo "###################################"
|
||||||
echo "### it seems we have an problem ###"
|
echo "### it seems we have an problem ###"
|
||||||
echo "### starting emergency shell... ###"
|
echo "### starting emergency shell... ###"
|
||||||
|
echo "###################################"
|
||||||
exec /bin/sh </dev/tty3 >/dev/tty3 2>&1
|
exec /bin/sh </dev/tty3 >/dev/tty3 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user