Test if symbolic is already there (#886)
[openwrt.git] / package / base-files / default / etc / init.d / cron
index a450c36..e78d023 100755 (executable)
@@ -3,7 +3,7 @@
 
 start () {
        mkdir -p /var/spool/cron
-       ln -s /etc/crontabs /var/spool/cron/crontabs
+       [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
        crond -c /etc/crontabs
 }