diff options
Diffstat (limited to 'usr/bin/iwlist_env')
-rwxr-xr-x | usr/bin/iwlist_env | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/usr/bin/iwlist_env b/usr/bin/iwlist_env deleted file mode 100755 index 29112ff3..00000000 --- a/usr/bin/iwlist_env +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -count=0 - -iwlist scan ${1:-} 2>/dev/null | ( while read line; -do - case "$line" in - *"Cell "*) - #echo - : $((count+=1)) - echo MAC_${count}="${line#*Address: }" - ;; - *Channel:*) - echo CHANNEL_${count}="${line#*:}" - ;; - *Quality=*) - echo QUALITY_${count}="`printf '%s' ${line#*Quality=} | cut -d/ -f 1`" - ;; - *"Encryption key:"*) - echo ENCRYPTION_${count}="${line#*key:}" - ;; - *ESSID:*) - echo ESSID_${count}="${line#*ESSID:}" - ;; - *"IE: IEEE 802.11i/WPA2"*) - echo WPA2_${count}=1 - ;; - *"IE: WPA Version 1"*) - echo WPA_${count}=1 - ;; - *);; - esac -done; echo WIFI_COUNT=$count) |