summaryrefslogtreecommitdiff
path: root/package/base-files/default/etc
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-11-04 12:47:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-11-04 12:47:45 +0000
commite410cb37bfcfcd6487b93b1449e61ca4d2321530 (patch)
treeb130abc64debf7cac09b90962fd9b908e87a9197 /package/base-files/default/etc
parentec9592d2ead97bd1e08ac3f549c6db47b050d0a6 (diff)
downloadmtk-20170518-e410cb37bfcfcd6487b93b1449e61ca4d2321530.zip
mtk-20170518-e410cb37bfcfcd6487b93b1449e61ca4d2321530.tar.gz
mtk-20170518-e410cb37bfcfcd6487b93b1449e61ca4d2321530.tar.bz2
Test if symbolic is already there (#886)
SVN-Revision: 5442
Diffstat (limited to 'package/base-files/default/etc')
-rwxr-xr-xpackage/base-files/default/etc/init.d/cron2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/default/etc/init.d/cron b/package/base-files/default/etc/init.d/cron
index a450c36..e78d023 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
}