From: Jo-Philipp Wich Date: Wed, 29 Apr 2009 13:08:54 +0000 (+0000) Subject: Merge r14540 and r15481 to 8.09 X-Git-Tag: 8.09.1~90 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c5d7d710a4309ad091848c89475f9d0034e7f92c;p=openwrt%2Fsvn-archive%2Fopenwrt.git Merge r14540 and r15481 to 8.09 SVN-Revision: 15484 --- diff --git a/package/busybox/files/cron b/package/busybox/files/cron index 9a31392717..aa538969be 100755 --- a/package/busybox/files/cron +++ b/package/busybox/files/cron @@ -3,10 +3,11 @@ START=50 start () { - [ -z $(ls /etc/crontabs/) ] && exit 1 + loglevel=$(/sbin/uci get "system.@system[0].cronloglevel" 2>/dev/null) + [ -z "$(ls /etc/crontabs/)" ] && exit 1 mkdir -p /var/spool/cron [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs - crond -c /etc/crontabs + crond -c /etc/crontabs -l ${loglevel:-5} } stop() {