X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/b444a2b4d604c2c0f1b46a9b8dd8d9c229ff023b..ca2745c2818a64722ec0b159cd2a08eaf680652a:/package/base-files/default/etc/init.d/S60cron?ds=sidebyside diff --git a/package/base-files/default/etc/init.d/S60cron b/package/base-files/default/etc/init.d/S60cron index ed43e743d..6069b8177 100755 --- a/package/base-files/default/etc/init.d/S60cron +++ b/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