From: Florian Fainelli Date: Sat, 4 Nov 2006 12:47:45 +0000 (+0000) Subject: Test if symbolic is already there (#886) X-Git-Tag: reboot~30509 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e410cb37bfcfcd6487b93b1449e61ca4d2321530;p=openwrt%2Fstaging%2Fblogic.git Test if symbolic is already there (#886) SVN-Revision: 5442 --- diff --git a/package/base-files/default/etc/init.d/cron b/package/base-files/default/etc/init.d/cron index a450c36dd228..e78d02332cd3 100755 --- a/package/base-files/default/etc/init.d/cron +++ b/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 }