projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ab5ce
)
generate mac list of all wifi devices
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 10 Jul 2018 09:41:45 +0000
(11:41 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 10 Jul 2018 09:41:45 +0000
(11:41 +0200)
wap-mac-list.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/wap-mac-list.sh
b/wap-mac-list.sh
new file mode 100755
(executable)
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