busybox: rename $RUNLEVEL to $MODE

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-09-07 21:43:23 +02:00
parent e4e4d1093d
commit 991a990a2e
3 changed files with 7 additions and 7 deletions

View File

@ -24,14 +24,14 @@
################################################################################
# getting runlevel
RUNLEVEL="openelec"
MODE="openelec"
if test "$TEXTMODE" = yes; then
RUNLEVEL="textmode"
MODE="textmode"
fi
if test "$INSTALLER" = yes; then
RUNLEVEL="installer"
MODE="installer"
fi
export RUNLEVEL
export MODE

View File

@ -46,8 +46,8 @@
progress "Starting Init Scripts"
RET=0
for script in /etc/init.d/*; do
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
for script in `ls -1 /etc/init.d/*`; do
if grep -q -e "^# runlevels:.*$MODE" $script; then
. $script
S_RET=$?
test $S_RET -ge $RET && RET=$S_RET

View File

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