aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-01-02 13:16:32 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-01-02 13:16:32 +0000
commita21254de1a4c6bb4d00fb8398082b81a5e10cc13 (patch)
tree1f76cacb9f1521d0cdec10adc67c980fb1984486 /package/base-files
parentda4fd6947de4d8e458a98654f8fee5ae6b0486e2 (diff)
downloadupstream-a21254de1a4c6bb4d00fb8398082b81a5e10cc13.tar.gz
upstream-a21254de1a4c6bb4d00fb8398082b81a5e10cc13.tar.bz2
upstream-a21254de1a4c6bb4d00fb8398082b81a5e10cc13.zip
Corrected ticket #168
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2805 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/default/etc/init.d/S60cron7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/base-files/default/etc/init.d/S60cron b/package/base-files/default/etc/init.d/S60cron
index 6647fe1bc0..bd12b8bb78 100755
--- a/package/base-files/default/etc/init.d/S60cron
+++ b/package/base-files/default/etc/init.d/S60cron
@@ -1,5 +1,8 @@
#!/bin/sh
-[ -d /etc/crontabs ] && {
+[ -d /etc/crontabs ] || mkdir -p /etc/crontabs
+
+[ -e /var/spool/cron/crontabs ] && {
mkdir -p /var/spool/cron
- crond -c /etc/crontabs
+ ln -s /etc/crontabs /var/spool/cron
}
+ crond -c /etc/crontabs