summaryrefslogtreecommitdiff
path: root/net/iwconfig.sh.BSD.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-20 14:24:35 +0000
committerRoy Marples <roy@marples.name>2008-04-20 14:24:35 +0000
commit799686e40df455b136dfe41e805cd04a2813cc00 (patch)
tree058ec7e2a7328d15bd8797fb2fb3ceda6acdad28 /net/iwconfig.sh.BSD.in
parentd83ae59ccabcde6cf1bee735c794cea2069c0a34 (diff)
downloadopenrc-799686e40df455b136dfe41e805cd04a2813cc00.tar.gz
openrc-799686e40df455b136dfe41e805cd04a2813cc00.tar.bz2
openrc-799686e40df455b136dfe41e805cd04a2813cc00.tar.xz
Fix force_preferred, #60.
Diffstat (limited to 'net/iwconfig.sh.BSD.in')
-rw-r--r--net/iwconfig.sh.BSD.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/iwconfig.sh.BSD.in b/net/iwconfig.sh.BSD.in
index 3a276cd..813fd2f 100644
--- a/net/iwconfig.sh.BSD.in
+++ b/net/iwconfig.sh.BSD.in
@@ -414,8 +414,9 @@ iwconfig_connect_preferred()
[ $# = 0 ] && eval set -- $(_flatten_array "preferred_aps")
[ $# = 0 ] && return 1
- local ssid= i=0 mode= mac= caps= freq= chan=
+ local ssid= i= mode= mac= caps= freq= chan=
for ssid; do
+ i=0
while [ ${i} -le ${APS} ] ; do
eval e=\$SSID_${i}
if [ "${e}" = "${ssid}" ] ; then
@@ -484,7 +485,7 @@ iwconfig_defaults()
iwconfig_configure()
{
- local x APS
+ local x= APS=-1
eval SSID=\$ssid_${IFVAR}
# Setup ad-hoc mode?