X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/0b535c275daf19abbfab30a83f57182a9d42f892..3f7fe8a080572fb3b989b7e86ca6aa9002b6dfae:/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 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