Browse Source

Test if symbolic is already there (#886)

SVN-Revision: 5442
Florian Fainelli 19 years ago
parent
commit
e410cb37bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/default/etc/init.d/cron

+ 1 - 1
package/base-files/default/etc/init.d/cron

@@ -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
 }