summaryrefslogtreecommitdiffstats
path: root/package/base-files/default/etc/init.d/S60cron
diff options
context:
space:
mode:
authorolli <olli@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-02 20:21:33 +0000
committerolli <olli@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-01-02 20:21:33 +0000
commit333d877eb1d1ff70bcc29ddcf6dd2ef0e92a2932 (patch)
tree008939c4e3c93b426cf25efdf391aba2817eba4b /package/base-files/default/etc/init.d/S60cron
parent7c2c9b9c4751c3057b47798c443a60f5c71bcfdc (diff)
hopefully last fix for S60cron
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2812 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/etc/init.d/S60cron')
-rwxr-xr-xpackage/base-files/default/etc/init.d/S60cron10
1 files changed, 4 insertions, 6 deletions
diff --git a/package/base-files/default/etc/init.d/S60cron b/package/base-files/default/etc/init.d/S60cron
index bd12b8bb7..6069b8177 100755
--- a/package/base-files/default/etc/init.d/S60cron
+++ b/package/base-files/default/etc/init.d/S60cron
@@ -1,8 +1,6 @@
#!/bin/sh
[ -d /etc/crontabs ] || mkdir -p /etc/crontabs
-
-[ -e /var/spool/cron/crontabs ] && {
- mkdir -p /var/spool/cron
- ln -s /etc/crontabs /var/spool/cron
-}
- crond -c /etc/crontabs
+[ -e /var/spool/cron/crontabs ] || {
+ mkdir -p /var/spool/cron
+ ln -s /etc/crontabs /var/spool/cron/crontabs
+} && crond -c /etc/crontabs