busybox: move crond init script to scripts folder, cleanups

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-01-19 21:31:14 +01:00
parent 102b46dbed
commit e4e0350784
2 changed files with 5 additions and 9 deletions

View File

@ -72,7 +72,7 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
# cron support
if [ "$CRON_SUPPORT" = "yes" ] ; then
mkdir -p $INSTALL/etc/init.d
cp $PKG_DIR/init.d.optional/09_crond $INSTALL/etc/init.d/
cp $PKG_DIR/scripts/09_crond $INSTALL/etc/init.d/
else
rm -f $INSTALL/sbin/crond
rm -f $INSTALL/bin/crontab

View File

@ -19,22 +19,18 @@
################################################################################
#
# start syslog daemon
# start cron daemon
#
# runlevels: openelec, installer, textmode
# runlevels: openelec, textmode
(
if [ -f /var/config/settings.conf ]; then
. /var/config/settings.conf
fi
if [ "$CROND_START" == "true" ]; then
progress "Starting cront daemon"
if [ ! -d "/storage/.cache/cron/crontabs" ] ; then
mkdir -p /storage/.cache/cron/crontabs
fi
progress "Starting cron daemon"
mkdir -p /storage/.cache/cron/crontabs
crond -b
fi
)&