summaryrefslogtreecommitdiffstats
path: root/usr/bin/iwlist_env
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-05-23 19:34:38 +0200
committermakefu <github@syntax-fehler.de>2013-05-23 19:34:38 +0200
commita1a677d33e68c019d9fdecb29e57164d69e8aa03 (patch)
treedd20591f27e8fce64aec60a6b33225569bc7706b /usr/bin/iwlist_env
parent33023fe6a009674830f21f575436115efbaaf22d (diff)
update iwlist_env
Diffstat (limited to 'usr/bin/iwlist_env')
-rwxr-xr-xusr/bin/iwlist_env6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/bin/iwlist_env b/usr/bin/iwlist_env
index fcd9627d..29112ff3 100755
--- a/usr/bin/iwlist_env
+++ b/usr/bin/iwlist_env
@@ -2,11 +2,11 @@
count=0
-iwlist scan ${interface:-} 2>/dev/null | while read line;
+iwlist scan ${1:-} 2>/dev/null | ( while read line;
do
case "$line" in
*"Cell "*)
- echo
+ #echo
: $((count+=1))
echo MAC_${count}="${line#*Address: }"
;;
@@ -30,4 +30,4 @@ do
;;
*);;
esac
-done
+done; echo WIFI_COUNT=$count)