Commit aa7aba3c authored by rubo77's avatar rubo77
Browse files

if the router started less than 10 minutes ago, exit

parent 2550af34
......@@ -4,6 +4,9 @@
MINUTES=1440 # only once every timeframe the SSID will change to OFFLINE (set to 1 minute to change every time the router gets offline)
OFFLINE_PREFIX='FF_OFFLINE_' # use something short to leave space for the nodename (no '~' allowed!)
# if the router started less than 10 minutes ago, exit
[ $(cat /proc/uptime | sed 's/\..*//g') -gt 600 ] || exit
ONLINE_SSID="$(uci get wireless.client_radio0.ssid -q)"
: ${ONLINE_SSID:="FREIFUNK"} # if for whatever reason ONLINE_SSID is NULL
......
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