diff options
author | Florian Fainelli <florian@openwrt.org> | 2006-01-02 13:16:32 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2006-01-02 13:16:32 +0000 |
commit | bdba63872527d9fcf354e500dcf1a65800f8adc6 (patch) | |
tree | 1e7a30e4dc6b1e7c9e5a3c29679d02c1541fe1b2 /openwrt/package/base-files/default/etc | |
parent | e5ff9675317436a5bb8eb7aa9504ce5ca540adcb (diff) | |
download | mtk-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-x | openwrt/package/base-files/default/etc/init.d/S60cron | 7 |
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 |