diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-07-19 02:13:32 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-08-13 16:39:08 -0400 |
commit | 29028d9b2b3df8aafb6a766c074e55bf8f452437 (patch) | |
tree | 466656986913645b6a8b0735f50d703da47d4bd6 | |
parent | 0f63fc9318168413b89528ed05d69ba0dab824b7 (diff) |
rbar_wifi: fixity fix
-rwxr-xr-x | .config/wmii-hg/rbar_wifi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/wmii-hg/rbar_wifi b/.config/wmii-hg/rbar_wifi index 445c10a..d201152 100755 --- a/.config/wmii-hg/rbar_wifi +++ b/.config/wmii-hg/rbar_wifi @@ -10,15 +10,16 @@ iwinfo() { } update() { + local iface=wlp2s0 + local id id=$1 setup_trap "$id" while true; do - printf 'label ' IFS=$'\n' lines=($( - iwinfo wlp2s0 | sed -rn 's@^(ESSID|Link Quality)=@@p' - ifdata -pa wlp2s0 + iwinfo "$iface" | sed -rn 's@^(ESSID|Link Quality)=@@p' + ifdata -pa "$iface" )) IFS='|' echo "label ${lines[*]}" | write "$id" |