Test if symbolic is already there (#886)
authorFlorian Fainelli <florian@openwrt.org>
Sat, 4 Nov 2006 12:47:45 +0000 (12:47 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 4 Nov 2006 12:47:45 +0000 (12:47 +0000)
SVN-Revision: 5442

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
 }