summaryrefslogtreecommitdiff
path: root/.local/bin/iwdata
blob: a631d6d155411f5f54a2e320cf494d65329f91ae (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

iwconfig "$1" |
sed -r 's/ {2,}/\n/g' |
sed -e '/^\s*$/d' -e 's/:\s*/=/' \
	-e '1s/^/Interface=/' \
	-e '2s/^/MAC Protocol=/' \
	-e 's/^ESSID="\(.*\)"$/ESSID=\1/'