summaryrefslogtreecommitdiff
path: root/net.Linux/iwconfig.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-31 18:23:56 +0000
committerRoy Marples <roy@marples.name>2007-07-31 18:23:56 +0000
commitdb7b95346037aa3ab517851c0cdf28244d686a71 (patch)
treec6afac95f29627b13f0e0d3515bfdc78b36f991e /net.Linux/iwconfig.sh
parentc22ccdf577a7de09e21401667b8b5025fa532148 (diff)
downloadopenrc-db7b95346037aa3ab517851c0cdf28244d686a71.tar.gz
openrc-db7b95346037aa3ab517851c0cdf28244d686a71.tar.bz2
openrc-db7b95346037aa3ab517851c0cdf28244d686a71.tar.xz
Remove baselayout-1 stuff
Diffstat (limited to 'net.Linux/iwconfig.sh')
-rw-r--r--net.Linux/iwconfig.sh18
1 files changed, 7 insertions, 11 deletions
diff --git a/net.Linux/iwconfig.sh b/net.Linux/iwconfig.sh
index 4c2dccc..b6d6767 100644
--- a/net.Linux/iwconfig.sh
+++ b/net.Linux/iwconfig.sh
@@ -439,9 +439,7 @@ iwconfig_scan() {
i=$((${i} + 1))
done
- local i=0 e= m= black= s=
- eval "$(_get_array "blacklist_aps")"
- black="$@"
+ local i=0 e= m= s=
while [ ${i} -le ${APS} ] ; do
eval x=\$MAC_${i}
@@ -582,7 +580,7 @@ iwconfig_defaults() {
}
iwconfig_configure() {
- local x APS
+ local x= APS=
eval SSID=\$ssid_${IFVAR}
# Support old variable
@@ -615,18 +613,16 @@ iwconfig_configure() {
return 1
fi
- # Do we have a preferred Access Point list specific to the interface?
-# x="preferred_aps_${ifvar}[@]"
-# [[ -n ${!x} ]] && preferred_aps=( "${!x}" )
+ eval x=\$preferred_aps_${IFVAR}
+ [ -n "${x}" ] && preferred_aps=${x}
-# # Do we have a blacklist Access Point list specific to the interface?
-# x="blacklist_aps_${ifvar}[@]"
-# [[ -n ${!x} ]] && blacklist_aps=( "${!x}" )
+ eval x=\$blacklist_aps_${IFVAR}
+ [ -n "${x}" ] && blacklist_aps=${x}
- # Are we forcing preferred only?
eval x=\$associate_order_${IFVAR}
[ -n "${x}" ] && associate_order=${x}
associate_order=${associate_order:-any}
+
if [ "${associate_order}" = "forcepreferredonly" ]; then
iwconfig_force_preferred && return 0
else