aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
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
commit36f10c5837a2cc237396fe0fb5fa83c72974296a (patch)
tree3827aa5c0bc4d19b3ea98e437e55086788f48236 /package/base-files
parente669927c9ba416c00c01b225ec90b705ea412169 (diff)
downloadupstream-36f10c5837a2cc237396fe0fb5fa83c72974296a.tar.gz
upstream-36f10c5837a2cc237396fe0fb5fa83c72974296a.tar.bz2
upstream-36f10c5837a2cc237396fe0fb5fa83c72974296a.zip
Test if symbolic is already there (#886)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5442 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-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 a450c36dd2..e78d02332c 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
}