Revert "busybox: rename $RUNLEVEL to $MODE"

This reverts commit 991a990a2edec4fe0983518e3a9ccccd0e80f70d.
This commit is contained in:
Stephan Raue 2011-09-12 19:29:16 +02:00
parent c161e997d7
commit 32562d4fa9
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -22,7 +22,7 @@
. /etc/profile
if [ "$MODE" = openelec ]; then
if [ "$RUNLEVEL" = openelec ]; then
logger -t Xorg "### starting Xorg with driver ${xorg_driver} ###"