X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=package%2Fbusybox%2Ffiles%2Fcron;h=2e020bbc629a9995eb7be7b98359dac9cc6965ff;hb=c55e10aab7cee13246923cc674f70710bb381018;hp=f24713060841aaa413da2486595efab234db75cf;hpb=c079c203b1dacb350c6fa4f8512576c8e5df8c09;p=openwrt.git diff --git a/package/busybox/files/cron b/package/busybox/files/cron index f247130608..2e020bbc62 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 + ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null + crond -c /etc/crontabs -l ${loglevel:-5} } stop() {