Commit dda16912 authored by sokai's avatar sokai

better croninterval (fix by Sven)

parent 99e019c2
......@@ -21,7 +21,7 @@ EXTRA_COMMANDS="status update upgrade"
SCRIPTVERSION='160201-1'
SCRIPT=${SCRIPTPATH}${SCRIPTNAME}
CRONTAB='/var/spool/cron/crontabs/root'
CRONINTERVAL=$(head -30 /dev/urandom | tr -dc "012345" | head -c2) # run cron hourly at a random minute
CRONINTERVAL=$(awk 'BEGIN{srand();print int(rand()*60)}') # run cron hourly at a random minute
WIF=$(ifconfig | awk '/10\.22\.[0-9]{1,3}\.[0-9]{1,3}/ {print $1}' RS="\n\n" | grep -m 1 wlan) # http://stackoverflow.com/a/18344694/338049
#WIF= uci show = [email protected][0].ifname=wlan0-adhoc-2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment