Test if symbolic is already there (#886)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Nov 2006 12:47:45 +0000 (12:47 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Nov 2006 12:47:45 +0000 (12:47 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5442 3c298f89-4303-0410-b956-a3cf2f4a3e73

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
 }
 
This page took 0.024262 seconds and 4 git commands to generate.