X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/b444a2b4d604c2c0f1b46a9b8dd8d9c229ff023b..25bfff5314a2f5ec3a5d216d6a26f4d01758328d:/package/base-files/default/etc/init.d/S60cron?ds=inline 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