Corrected ticket #168
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / etc / init.d / S60cron
index 6647fe1bc0c9de83a26123784c5ec82325bb1f4e..bd12b8bb7817f20e89a50be34eff95b1f0aa2dbd 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
-[ -d /etc/crontabs ] && {
+[ -d /etc/crontabs ] || mkdir -p /etc/crontabs
+
+[ -e /var/spool/cron/crontabs ] && {
        mkdir -p /var/spool/cron
-       crond -c /etc/crontabs
+       ln -s /etc/crontabs /var/spool/cron
 }
+       crond -c /etc/crontabs