summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
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
commitbdba63872527d9fcf354e500dcf1a65800f8adc6 (patch)
tree1e7a30e4dc6b1e7c9e5a3c29679d02c1541fe1b2 /openwrt/package/base-files/default/etc
parente5ff9675317436a5bb8eb7aa9504ce5ca540adcb (diff)
downloadmtk-20170518-bdba63872527d9fcf354e500dcf1a65800f8adc6.zip
mtk-20170518-bdba63872527d9fcf354e500dcf1a65800f8adc6.tar.gz
mtk-20170518-bdba63872527d9fcf354e500dcf1a65800f8adc6.tar.bz2
Corrected ticket #168
SVN-Revision: 2805
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S60cron7
1 files changed, 5 insertions, 2 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron
index 6647fe1..bd12b8b 100755
--- a/openwrt/package/base-files/default/etc/init.d/S60cron
+++ b/openwrt/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