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

reduce logging if nothing worthy to report

parent 5faf397c
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ echo 950 > /proc/$(pgrep /usr/sbin/batadv-vis)/oom_score_adj # batvis ...@@ -18,7 +18,7 @@ echo 950 > /proc/$(pgrep /usr/sbin/batadv-vis)/oom_score_adj # batvis
# if we see bat GW just exit # if we see bat GW just exit
netz=$(batctl gwl -H|grep -v "gateways in range"|wc -l) netz=$(batctl gwl -H|grep -v "gateways in range"|wc -l)
if [ $netz -ne 0 ] ; then if [ $netz -ne 0 ] ; then
echo "$0 found GW in network, exiting"|logger echo "$0 found GW in network, exiting"
echo 0 > /tmp/emergency echo 0 > /tmp/emergency
exit 0 exit 0
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment