projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
630fdc1
)
create /dev/shm/wap-name-mac
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 6 Apr 2022 18:58:26 +0000
(20:58 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 6 Apr 2022 18:58:26 +0000
(20:58 +0200)
wap-name-mac.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/wap-name-mac.sh
b/wap-name-mac.sh
new file mode 100755
(executable)
index 0000000..
25e2c9e
--- /dev/null
+++ b/
wap-name-mac.sh
@@ -0,0
+1,6
@@
+#!/bin/sh
+
+# seed arp
+./wap-names | xargs fping -q
+# extract mac
+/usr/sbin/arp -a | grep wap | awk '{ print $1" "$4 }' | sed 's/\.infosl//' | tee /dev/shm/wap-name-mac