projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Test if symbolic is already there (#886)
[openwrt.git]
/
package
/
base-files
/
default
/
etc
/
init.d
/
cron
diff --git
a/package/base-files/default/etc/init.d/cron
b/package/base-files/default/etc/init.d/cron
index
a450c36
..
e78d023
100755
(executable)
--- 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
}