From c5d7d710a4309ad091848c89475f9d0034e7f92c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 29 Apr 2009 13:08:54 +0000 Subject: [PATCH] Merge r14540 and r15481 to 8.09 SVN-Revision: 15484 --- package/busybox/files/cron | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() { -- 2.30.2