mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
Revert "busybox: rename $RUNLEVEL to $MODE"
This reverts commit 991a990a2edec4fe0983518e3a9ccccd0e80f70d.
This commit is contained in:
parent
c161e997d7
commit
32562d4fa9
@ -24,14 +24,14 @@
|
||||
################################################################################
|
||||
|
||||
# getting runlevel
|
||||
MODE="openelec"
|
||||
RUNLEVEL="openelec"
|
||||
|
||||
if test "$TEXTMODE" = yes; then
|
||||
MODE="textmode"
|
||||
RUNLEVEL="textmode"
|
||||
fi
|
||||
|
||||
if test "$INSTALLER" = yes; then
|
||||
MODE="installer"
|
||||
RUNLEVEL="installer"
|
||||
fi
|
||||
|
||||
export MODE
|
||||
export RUNLEVEL
|
||||
|
@ -46,8 +46,8 @@
|
||||
progress "Starting Init Scripts"
|
||||
RET=0
|
||||
|
||||
for script in `ls -1 /etc/init.d/*`; do
|
||||
if grep -q -e "^# runlevels:.*$MODE" $script; then
|
||||
for script in /etc/init.d/*; do
|
||||
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
||||
. $script
|
||||
S_RET=$?
|
||||
test $S_RET -ge $RET && RET=$S_RET
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
. /etc/profile
|
||||
|
||||
if [ "$MODE" = openelec ]; then
|
||||
if [ "$RUNLEVEL" = openelec ]; then
|
||||
|
||||
logger -t Xorg "### starting Xorg with driver ${xorg_driver} ###"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user