summaryrefslogtreecommitdiff
path: root/net.Linux/iwconfig.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-30 11:38:23 +0000
committerRoy Marples <roy@marples.name>2007-10-30 11:38:23 +0000
commit05f119a78eb803937413cd84f8ec1deb93355586 (patch)
tree885547b9bfbef8231f4dd8b8217134b1e5fa6ad4 /net.Linux/iwconfig.sh
parent7d2c240c2584c4cefaebcff86441d31b927293ed (diff)
downloadopenrc-05f119a78eb803937413cd84f8ec1deb93355586.tar.gz
openrc-05f119a78eb803937413cd84f8ec1deb93355586.tar.bz2
openrc-05f119a78eb803937413cd84f8ec1deb93355586.tar.xz
Embed newlines in __IFS to save our identing
Diffstat (limited to 'net.Linux/iwconfig.sh')
-rw-r--r--net.Linux/iwconfig.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/net.Linux/iwconfig.sh b/net.Linux/iwconfig.sh
index 5f1c173..65bdb9a 100644
--- a/net.Linux/iwconfig.sh
+++ b/net.Linux/iwconfig.sh
@@ -118,8 +118,7 @@ iwconfig_user_config() {
[ -z "${var}" ] && var=${IFVAR}
config="$(_get_array "iwconfig_${var}")"
- local IFS="
-"
+ local IFS="$__IFS"
for conf in ${config}; do
unset IFS
if ! eval iwconfig "${IFACE}" "${conf}" ; then
@@ -130,8 +129,7 @@ iwconfig_user_config() {
unset IFS
config="$(_get_array "iwpriv_${var}")"
- local IFS="
-"
+ local IFS="$__IFS"
for conf in ${config}; do
unset IFS
if ! eval iwpriv "${IFACE}" "${conf}" ; then
@@ -480,8 +478,7 @@ iwconfig_scan() {
fi
local blacklist="$(_get_array "blacklist_aps")"
- local IFS="
-"
+ local IFS="$__IFS"
for x in ${blacklist}; do
unset IFS
if [ "${x}" = "${s}" ] ; then
@@ -500,8 +497,7 @@ iwconfig_force_preferred() {
ewarn "Trying to force preferred in case they are hidden"
local pref="$(_get_array "preferred_aps")" ssid=
- local IFS="
-"
+ local IFS="$__IFS"
for ssid in ${pref}; do
unset IFS
local found_AP=false i=0 e=
@@ -526,8 +522,7 @@ iwconfig_force_preferred() {
iwconfig_connect_preferred() {
local ssid= i= mode= mac= enc= freq= chan=
local pref="$(_get_array preferred_aps)"
- local IFS="
-"
+ local IFS="$__IFS"
for ssid in ${pref}; do
unset IFS
i=0
@@ -557,8 +552,7 @@ iwconfig_connect_not_preferred() {
eval e=\$SSID_${i}
if [ -n "${e}" ] ; then
local prefa="$(_get_array preferred_aps)"
- local IFS="
-"
+ local IFS="$__IFS"
for ssid in ${prefa}; do
if [ "${e}" = "${ssid}" ] ; then
pref=true