diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/iwdata | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/iwdata b/.local/bin/iwdata new file mode 100755 index 0000000..a631d6d --- /dev/null +++ b/.local/bin/iwdata @@ -0,0 +1,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/' |