summaryrefslogtreecommitdiffstats
path: root/openwrt/package/base-files/default
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/base-files/default')
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S60cron10
1 files changed, 4 insertions, 6 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron
index bd12b8bb7..6069b8177 100755
--- a/openwrt/package/base-files/default/etc/init.d/S60cron
+++ b/openwrt/package/base-files/default/etc/init.d/S60cron
@@ -1,8 +1,6 @@
#!/bin/sh
[ -d /etc/crontabs ] || mkdir -p /etc/crontabs
-
-[ -e /var/spool/cron/crontabs ] && {
- mkdir -p /var/spool/cron
- ln -s /etc/crontabs /var/spool/cron
-}
- crond -c /etc/crontabs
+[ -e /var/spool/cron/crontabs ] || {
+ mkdir -p /var/spool/cron
+ ln -s /etc/crontabs /var/spool/cron/crontabs
+} && crond -c /etc/crontabs