mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 12:46:53 +00:00
busybox:
- simplyfing some init scripts
This commit is contained in:
parent
7e2c43024a
commit
040da1646f
@ -1,16 +1,11 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
#
|
||||||
# start cron daemon
|
# start cron daemon
|
||||||
#
|
#
|
||||||
# runlevels: openelec, text, debug
|
# runlevels: openelec, text, debug
|
||||||
|
|
||||||
(
|
(
|
||||||
. /etc/sysconfig
|
|
||||||
|
|
||||||
progress "Starting Syslog daemon"
|
progress "Starting Syslog daemon"
|
||||||
|
|
||||||
mkdir -p /var/log
|
mkdir -p /var/log
|
||||||
syslogd
|
syslogd
|
||||||
)&
|
)&
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
@ -1,15 +1,9 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# store boot time
|
# store boot time
|
||||||
#
|
#
|
||||||
# runlevels: openelec, text, debug
|
# runlevels: openelec, text, debug
|
||||||
|
|
||||||
(
|
(
|
||||||
. /etc/sysconfig
|
|
||||||
|
|
||||||
progress "saving Bootdate"
|
progress "saving Bootdate"
|
||||||
|
|
||||||
/bin/date > /tmp/bootdate
|
/bin/date > /tmp/bootdate
|
||||||
)&
|
)&
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
@ -1,16 +1,10 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# start cron daemon
|
# start cron daemon
|
||||||
#
|
#
|
||||||
# runlevels: openelec, text, debug
|
# runlevels: openelec, text, debug
|
||||||
|
|
||||||
(
|
(
|
||||||
. /etc/sysconfig
|
|
||||||
|
|
||||||
progress "Starting CRON daemon"
|
progress "Starting CRON daemon"
|
||||||
|
|
||||||
mkdir -p /var/spool/cron/crontabs
|
mkdir -p /var/spool/cron/crontabs
|
||||||
crond -S
|
crond -S
|
||||||
)&
|
)&
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
@ -1,15 +1,9 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# start the ACPI daemon subsystem
|
# start the ACPI daemon subsystem
|
||||||
#
|
#
|
||||||
# runlevels: openelec, text, debug
|
# runlevels: openelec, text, debug
|
||||||
|
|
||||||
(
|
(
|
||||||
. /etc/sysconfig
|
|
||||||
|
|
||||||
progress "Starting ACPI daemon"
|
progress "Starting ACPI daemon"
|
||||||
|
|
||||||
acpid /dev/input/event* 2>&1 > /dev/null
|
acpid /dev/input/event* 2>&1 > /dev/null
|
||||||
)&
|
)&
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# start a debugging shell
|
# start a debugging shell
|
||||||
#
|
#
|
||||||
# runlevels: text, debug
|
# runlevels: text, debug
|
||||||
|
|
||||||
. /etc/sysconfig
|
|
||||||
|
|
||||||
progress "starting debug shell"
|
progress "starting debug shell"
|
||||||
|
|
||||||
echo "*** type exit to exit ***"
|
echo "*** type exit to exit ***"
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# shutdown the system
|
# shutdown the system
|
||||||
#
|
#
|
||||||
# runlevels: openelec, text, debug,
|
# runlevels: openelec, text, debug,
|
||||||
|
|
||||||
. /etc/sysconfig
|
|
||||||
|
|
||||||
progress "syncing discs"
|
progress "syncing discs"
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user