]> code.delx.au - monosys/commitdiff
wifi-scan
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 3 May 2014 10:44:30 +0000 (20:44 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 3 May 2014 10:44:30 +0000 (20:44 +1000)
scripts/wifi-scan [new file with mode: 0755]

diff --git a/scripts/wifi-scan b/scripts/wifi-scan
new file mode 100755 (executable)
index 0000000..7647071
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+iface="$(iw dev|grep Interface|awk '{print $2}')"
+sudo iw dev "$iface" scan |\
+egrep '^BSS|SSID|signal|DS Parameter set' |\
+sed 's/BSS/\nBSS/' |\
+less
+