summaryrefslogtreecommitdiffstats
path: root/openwrt/package/base-files/default/etc/init.d/S60cron
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/base-files/default/etc/init.d/S60cron')
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S60cron8
1 files changed, 3 insertions, 5 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron
index 6069b8177..175273426 100755
--- a/openwrt/package/base-files/default/etc/init.d/S60cron
+++ b/openwrt/package/base-files/default/etc/init.d/S60cron
@@ -1,6 +1,4 @@
#!/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/crontabs
-} && crond -c /etc/crontabs
+mkdir -p /var/spool/cron
+ln -s /etc/crontabs /var/spool/cron/crontabs
+crond -c /etc/crontabs