mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
busybox: rework init scripts
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
033f8438e6
commit
5404f9c219
5
packages/sysutils/busybox/init.d/00_mount_filesystem → packages/sysutils/busybox/init.d/01_mount-filesystem
Executable file → Normal file
5
packages/sysutils/busybox/init.d/00_mount_filesystem → packages/sysutils/busybox/init.d/01_mount-filesystem
Executable file → Normal 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
|
4
packages/sysutils/busybox/init.d/01_make_directorys → packages/sysutils/busybox/init.d/02_make-directorys
Executable file → Normal file
4
packages/sysutils/busybox/init.d/01_make_directorys → packages/sysutils/busybox/init.d/02_make-directorys
Executable file → Normal 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 \
|
4
packages/sysutils/busybox/init.d/08_userconfig → packages/sysutils/busybox/init.d/04_userconfig
Executable file → Normal file
4
packages/sysutils/busybox/init.d/08_userconfig → packages/sysutils/busybox/init.d/04_userconfig
Executable file → Normal 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
|
7
packages/sysutils/busybox/init.d/10_syslogd → packages/sysutils/busybox/init.d/08_syslogd
Executable file → Normal file
7
packages/sysutils/busybox/init.d/10_syslogd → packages/sysutils/busybox/init.d/08_syslogd
Executable file → Normal 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
|
||||
syslogd
|
||||
)&
|
5
packages/sysutils/busybox/init.d/11_crond → packages/sysutils/busybox/init.d/09_crond
Executable file → Normal file
5
packages/sysutils/busybox/init.d/11_crond → packages/sysutils/busybox/init.d/09_crond
Executable file → Normal 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
|
||||
)&
|
4
packages/sysutils/busybox/init.d/23_wakeup → packages/sysutils/busybox/init.d/35_wakeup
Executable file → Normal file
4
packages/sysutils/busybox/init.d/23_wakeup → packages/sysutils/busybox/init.d/35_wakeup
Executable file → Normal 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"
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user