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