X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c079c203b1dacb350c6fa4f8512576c8e5df8c09..c3dc4ee20f2a3e58203249281c13105f9aa65b1a:/package/busybox/files/cron diff --git a/package/busybox/files/cron b/package/busybox/files/cron index f24713060..aa538969b 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() {