X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=package%2Fbusybox%2Ffiles%2Fcron;fp=package%2Fbusybox%2Ffiles%2Fcron;h=aa538969be2aab12b7362fe8938c8e289fa8a85b;hp=f24713060841aaa413da2486595efab234db75cf;hb=d26ec37d18b7d14a1a0f52bee8b3be35058bdd46;hpb=df8693a787fdd08bb942055616c84ca4df17ed20 diff --git a/package/busybox/files/cron b/package/busybox/files/cron index f247130608..aa538969be 100755 --- a/package/busybox/files/cron +++ b/package/busybox/files/cron @@ -3,10 +3,11 @@ START=50 start () { + 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() {