X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/321a78f6a801e39007f353694d0a815fae678f2b..930b7bf62431dc62f4f3917dedf94950ef8c93bb:/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 bd12b8bb7..6069b8177 100755 --- a/package/base-files/default/etc/init.d/S60cron +++ b/package/base-files/default/etc/init.d/S60cron @@ -1,8 +1,6 @@ #!/bin/sh [ -d /etc/crontabs ] || mkdir -p /etc/crontabs - -[ -e /var/spool/cron/crontabs ] && { - mkdir -p /var/spool/cron - ln -s /etc/crontabs /var/spool/cron -} - crond -c /etc/crontabs +[ -e /var/spool/cron/crontabs ] || { + mkdir -p /var/spool/cron + ln -s /etc/crontabs /var/spool/cron/crontabs +} && crond -c /etc/crontabs