From f73b758b60aa5dbfac103da0d013d0713528a275 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 10 Jul 2018 11:41:45 +0200 Subject: [PATCH] generate mac list of all wifi devices --- wap-mac-list.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 wap-mac-list.sh diff --git a/wap-mac-list.sh b/wap-mac-list.sh new file mode 100755 index 0000000..7875240 --- /dev/null +++ b/wap-mac-list.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# seed arp +./wap-names | xargs fping -q +# extract mac +sudo arp -a | grep wap | awk '{ print $4" "$1 }' | sed 's/\.infosl$//' | tee /dev/shm/mac.wap -- 2.20.1