busybox: rework init scripts

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-01-09 03:48:28 +01:00
parent 033f8438e6
commit 5404f9c219
7 changed files with 2 additions and 29 deletions

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -25,8 +23,5 @@
#
# runlevels: openelec, installer, textmode
. /etc/profile
progress "mounting needed filesystems"
mount -n -t ramfs none /var

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -25,8 +23,6 @@
#
# runlevels: openelec, installer, textmode
. /etc/profile
progress "make variable directory structure"
mkdir -p /var/cache \
/var/log \

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -25,8 +23,6 @@
#
# runlevels: openelec, textmode
. /etc/profile
progress "copy userconfig and samples"
if [ -d /usr/config ]; then

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -25,10 +23,7 @@
#
# runlevels: openelec, installer, textmode
. /etc/profile
(
progress "Starting Syslog daemon"
syslogd
)&

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -25,10 +23,7 @@
#
# runlevels: openelec, textmode
. /etc/profile
(
progress "Starting cron daemon"
crond -bS -c /etc/crontabs
)&

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -24,8 +22,6 @@
#
# runlevels: openelec
. /etc/profile
(
if [ -f /proc/acpi/wakeup ]; then
progress "enable WakeUp devices"

View File

@ -43,7 +43,7 @@
for script in /etc/init.d/*; do
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
/bin/sh $script
. $script
S_RET=$?
test $S_RET -ge $RET && RET=$S_RET
fi