X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0b535c275daf19abbfab30a83f57182a9d42f892..46225926c8c36b914ad7423bb7e6f36a42b92298:/package/base-files/default/etc/init.d/S60cron diff --git a/package/base-files/default/etc/init.d/S60cron b/package/base-files/default/etc/init.d/S60cron index 6647fe1bc..6069b8177 100755 --- a/package/base-files/default/etc/init.d/S60cron +++ b/package/base-files/default/etc/init.d/S60cron @@ -1,5 +1,6 @@ #!/bin/sh -[ -d /etc/crontabs ] && { - mkdir -p /var/spool/cron - 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