diff --git a/packages/sysutils/busybox/install b/packages/sysutils/busybox/install index 37f376de70..64b61ca2e2 100755 --- a/packages/sysutils/busybox/install +++ b/packages/sysutils/busybox/install @@ -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 diff --git a/packages/sysutils/busybox/init.d.optional/09_crond b/packages/sysutils/busybox/scripts/09_crond similarity index 84% rename from packages/sysutils/busybox/init.d.optional/09_crond rename to packages/sysutils/busybox/scripts/09_crond index 6f5bb573f0..cae21e563b 100644 --- a/packages/sysutils/busybox/init.d.optional/09_crond +++ b/packages/sysutils/busybox/scripts/09_crond @@ -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 - )&