From: Florian Fainelli Date: Mon, 2 Jan 2006 13:16:32 +0000 (+0000) Subject: Corrected ticket #168 X-Git-Tag: reboot~31382 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bdba63872527d9fcf354e500dcf1a65800f8adc6;p=oweals%2Fopenwrt.git Corrected ticket #168 SVN-Revision: 2805 --- diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron index 6647fe1bc0..bd12b8bb78 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