X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/329282f4510b3c9c811cb513d571e7cc6f4aa437..4b908797b0d55eafa684bf8fe369f2887e7f257d:/openwrt/package/base-files/default/etc/init.d/S60cron diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron index ed43e743d..6069b8177 100755 --- a/openwrt/package/base-files/default/etc/init.d/S60cron +++ b/openwrt/package/base-files/default/etc/init.d/S60cron @@ -1,2 +1,6 @@ #!/bin/sh -[ -d /etc/crontabs ] && crond -c /etc/crontabs +[ -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