Test if symbolic is already there (#886)
[openwrt-10.03/.git] / package / base-files / default / etc / init.d / cron
index a450c36dd2287e698c0ae0aa300be765296d99a7..e78d02332cd3881d06ae6d905793709123e0f286 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
 }