X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/fea7cd278b1331261f120b77e4491918fef97598..733f605a17e5ef598450cb30b5a92891c7e0da2b:/package/busybox/files/cron?ds=inline diff --git a/package/busybox/files/cron b/package/busybox/files/cron index aa538969b..56348c84a 100755 --- a/package/busybox/files/cron +++ b/package/busybox/files/cron @@ -2,11 +2,13 @@ # Copyright (C) 2006 OpenWrt.org START=50 +PATH="/bin:/sbin:/usr/bin:/usr/sbin" + start () { - loglevel=$(/sbin/uci get "system.@system[0].cronloglevel" 2>/dev/null) + loglevel=$(uci_get "system.@system[0].cronloglevel") [ -z "$(ls /etc/crontabs/)" ] && exit 1 mkdir -p /var/spool/cron - [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs + ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null crond -c /etc/crontabs -l ${loglevel:-5} }