mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
bash:
- moving init scripts to start shell from busybox
This commit is contained in:
parent
e498ccfd7a
commit
c69817eeb2
@ -2,6 +2,8 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
TTY="3"
|
TTY="3"
|
||||||
|
|
||||||
if [ "$DEBUG" = "yes" ]; then
|
if [ "$DEBUG" = "yes" ]; then
|
||||||
@ -12,6 +14,6 @@ if [ "$DEBUG" = "yes" ]; then
|
|||||||
echo "## ...... switch with ctrl-alt-f$TTY ...... ##"
|
echo "## ...... switch with ctrl-alt-f$TTY ...... ##"
|
||||||
echo "###########################################"
|
echo "###########################################"
|
||||||
|
|
||||||
exec /sbin/getty -n -l /bin/sh 38400 tty$TTY &
|
exec /sbin/getty -n -l /bin/bash 38400 tty$TTY &
|
||||||
|
|
||||||
fi
|
fi
|
@ -2,6 +2,8 @@
|
|||||||
#
|
#
|
||||||
# runlevels: textmode
|
# runlevels: textmode
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
TTY="1"
|
TTY="1"
|
||||||
|
|
||||||
echo "###########################################"
|
echo "###########################################"
|
||||||
@ -11,5 +13,5 @@ echo "## ...... switch with ctrl-alt-f$TTY ...... ##"
|
|||||||
echo "###########################################"
|
echo "###########################################"
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
exec /sbin/getty -n -l /bin/sh 38400 tty$TTY
|
exec /sbin/getty -n -l /bin/bash 38400 tty$TTY
|
||||||
done
|
done
|
Loading…
x
Reference in New Issue
Block a user