diff options
author | Roy Marples <roy@marples.name> | 2007-11-29 11:23:06 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-29 11:23:06 +0000 |
commit | 82df7e4584282896a0618f14cca2dd3f3d23e8a2 (patch) | |
tree | 05a0c01d32adbbb2df8d833b97918454a3178a04 /net.BSD/iwconfig.sh | |
parent | 50161bef0e27ca235d876b888ae5abcafbec2ac7 (diff) |
Use shorthand for loops
Diffstat (limited to 'net.BSD/iwconfig.sh')
-rw-r--r-- | net.BSD/iwconfig.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net.BSD/iwconfig.sh b/net.BSD/iwconfig.sh index 86537767..6d670633 100644 --- a/net.BSD/iwconfig.sh +++ b/net.BSD/iwconfig.sh @@ -376,7 +376,7 @@ iwconfig_scan() { eval set -- $(_flatten_array "blacklist_aps_${IFVAR}") [ $# = 0 ] && eval set -- $(_flatten_array "blacklist_aps") - for x in "$@"; do + for x; do if [ "${x}" = "${s}" ] ; then ewarn "${s} has been blacklisted - not connecting" unset SSID_${i} MAC_${i} CHAN_${i} QUALITY_${i} CAPS_${i} @@ -395,7 +395,7 @@ iwconfig_force_preferred() { ewarn "Trying to force preferred in case they are hidden" local ssid= - for ssid in "$@"; do + for ssid; do local found_AP=false i=0 e= while [ ${i} -le ${APS:--1} ] ; do eval e=\$SSID_${i} @@ -421,7 +421,7 @@ iwconfig_connect_preferred() { [ $# = 0 ] && return 1 local ssid= i=0 mode= mac= caps= freq= chan= - for ssid in "$@"; do + for ssid; do while [ ${i} -le ${APS} ] ; do eval e=\$SSID_${i} if [ "${e}" = "${ssid}" ] ; then @@ -453,7 +453,7 @@ iwconfig_connect_not_preferred() { eval set -- $(_flatten_array "preferred_aps_${IFVAR}") [ $# = 0 ] && eval set -- $(_flatten_array "preferred_aps") pref=false - for ssid in "$@"; do + for ssid; do if [ "${e}" = "${ssid}" ] ; then pref=true break |