Skip to content
Snippets Groups Projects
Commit 4b67031b authored by fuzzle's avatar fuzzle
Browse files

if no gw is present batctl print a line that no gw is found - we have to take care of this

parent de582990
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ echo 900 > /proc/$(pgrep ntp)/oom_score_adj # ntp
echo 950 > /proc/$(pgrep /usr/sbin/batadv-vis)/oom_score_adj # batvis
# if we see bat GW just exit
netz=$(batctl gwl -H|wc -l)
netz=$(batctl gwl -H|grep -v "gateways in range"|wc -l)
if [ $netz -ne 0 ] ; then
echo "$0 found GW in network, exiting"|logger
echo 0 > /tmp/emergency
......
#!/bin/sh
# maximum simplyfied, no more ttvn rating
check=$(batctl gwl -H|wc -l)
check=$(batctl gwl -H|grep -v "gateways in range"|wc -l)
name=$(nodename status|tail -c 21)
offline="FF_OFFLINE_"
default="freiburg.freifunk.net"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment