Commit 1a42c470 authored by sokai's avatar sokai

cron-tab now will be installed with a random minute = better for server

parent d3e1cd4c
......@@ -9,7 +9,6 @@
SCRIPTNAME='ffp-apdb'
SCRIPTPATH='/etc/init.d/' # _with_ trailing / !
CRONINTERVAL=55 # run cron every x minutes (max 59?)
UPDATEURL='http://freifunk-potsdam.de/apdb/' # _with_ trailing / !
UPGRADEURL="http://freifunk-potsdam.de/${SCRIPTNAME}.php"
......@@ -22,6 +21,7 @@ EXTRA_COMMANDS="status update upgrade"
SCRIPTVERSION='160122-bf'
SCRIPT=${SCRIPTPATH}${SCRIPTNAME}
CRONTAB='/var/spool/cron/crontabs/root'
CRONINTERVAL=$(head -30 /dev/urandom | tr -dc "0123456789" | head -c2) # 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 wlan) # http://stackoverflow.com/a/18344694/338049
#WIFI= 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