ref: 40a2f3f8bad01abb94bbfcc2b282a0bfa95e6f92
dir: /rc/whi.rc/
#!/bin/rc # TODO: make this dynamic knowns=`{awk '$0 ~ /essid/ {split($3, a, "="); print a[2]}' /mnt/factotum/ctl} ether=ether1 if(~ $#* 1) ether=$1 #eval `{kill wpa} for(k in $knowns){ if(grep -s $k /net/$ether/ifstats){ echo '==>' found wireless: $k aux/wpa -s $k /net/$ether } }