Commit 1d23d198 authored by fuzzle's avatar fuzzle

make allclientscount more reliable by only counting .W. tagged batman clients

parent 66c8f1bf
......@@ -7,7 +7,9 @@ actfile=/tmp/allusermacact
# get tmp list of actual users (inkl routers)
# to lazy to filter them distinctly , but that means we are off 300+-
/usr/local/sbin/batctl tg |cut -d " " -f 3 > $actfile
# worse, some of the 300+- macs are random , and renewed at least every reboot
# we add ".W." to ensure only wifi clients ... and restart counting
/usr/local/sbin/batctl tg |grep ".W."|cut -d " " -f 3 > $actfile
for mac in $(cat $actfile); do
echo $mac | /usr/bin/sha256sum >> $datafile
......
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