summaryrefslogtreecommitdiff
path: root/net.BSD
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-29 11:23:06 +0000
committerRoy Marples <roy@marples.name>2007-11-29 11:23:06 +0000
commit82df7e4584282896a0618f14cca2dd3f3d23e8a2 (patch)
tree05a0c01d32adbbb2df8d833b97918454a3178a04 /net.BSD
parent50161bef0e27ca235d876b888ae5abcafbec2ac7 (diff)
downloadopenrc-82df7e4584282896a0618f14cca2dd3f3d23e8a2.tar.gz
openrc-82df7e4584282896a0618f14cca2dd3f3d23e8a2.tar.bz2
openrc-82df7e4584282896a0618f14cca2dd3f3d23e8a2.tar.xz
Use shorthand for loops
Diffstat (limited to 'net.BSD')
-rw-r--r--net.BSD/iwconfig.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/net.BSD/iwconfig.sh b/net.BSD/iwconfig.sh
index 8653776..6d67063 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