From e4e03507842a28f5f1462f115e21469a89c12cec Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 19 Jan 2013 21:31:14 +0100 Subject: [PATCH] busybox: move crond init script to scripts folder, cleanups Signed-off-by: Stephan Raue --- packages/sysutils/busybox/install | 2 +- .../busybox/{init.d.optional => scripts}/09_crond | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) rename packages/sysutils/busybox/{init.d.optional => scripts}/09_crond (84%) 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 - )&