Skip to content

Commit

Permalink
Merge pull request #52 from ffbsee/mart-ffbsee-patch-1
Browse files Browse the repository at this point in the history
Update print_map.sh
  • Loading branch information
mart-ffbsee committed Jul 3, 2019
2 parents e94939f + 842e03d commit 77f1ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/usr/sbin/print_map.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ print_basic() {
echo -n '], '

mac=$(uci -q get network.freifunk.macaddr)
echo -n "\"clientcount\" : $(batctl translocal 2> /dev/null | grep -c 'W')"
echo -n "$(batctl translocal 2> /dev/null | tr '\t/[]()' ' ' | awk -v mac=$mac 'BEGIN{ c=0; } { if($1 != mac && $3 ~ /^[.NW]+$/ && $4 < 300) c++;} END{ printf("\"clientcount\" : %d", c);}')"
}

print_more() {
Expand Down

0 comments on commit 77f1ebd

Please sign in to comment.