Embed newlines in __IFS to save our identing
This commit is contained in:
parent
05f119a78e
commit
1152e2677c
@ -241,7 +241,6 @@ iwconfig_scan() {
|
|||||||
i=$((${i} + 1))
|
i=$((${i} + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
local OIFS=$IFS
|
|
||||||
APS=-1
|
APS=-1
|
||||||
eval set -- ${scan}
|
eval set -- ${scan}
|
||||||
for line in "$@" ; do
|
for line in "$@" ; do
|
||||||
@ -353,8 +352,7 @@ iwconfig_scan() {
|
|||||||
eoutdent
|
eoutdent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local IFS="
|
local IFS="$__IFS"
|
||||||
"
|
|
||||||
for x in ${black}; do
|
for x in ${black}; do
|
||||||
if [ "${x}" = "${s}" ] ; then
|
if [ "${x}" = "${s}" ] ; then
|
||||||
ewarn "${s} has been blacklisted - not connecting"
|
ewarn "${s} has been blacklisted - not connecting"
|
||||||
@ -375,8 +373,7 @@ iwconfig_force_preferred() {
|
|||||||
local pref="$(_get_array "preferred_aps_${IFVAR}")"
|
local pref="$(_get_array "preferred_aps_${IFVAR}")"
|
||||||
[ -z "${pref}" ] && pref="$(_get_array "preferred_aps")"
|
[ -z "${pref}" ] && pref="$(_get_array "preferred_aps")"
|
||||||
|
|
||||||
local ssid= IFS="
|
local ssid= IFS="$__IFS"
|
||||||
"
|
|
||||||
for ssid in ${pref}; do
|
for ssid in ${pref}; do
|
||||||
unset IFS
|
unset IFS
|
||||||
local found_AP=false i=0 e=
|
local found_AP=false i=0 e=
|
||||||
@ -403,8 +400,7 @@ iwconfig_connect_preferred() {
|
|||||||
local pref="$(_get_array "preferred_aps_${IFVAR}")"
|
local pref="$(_get_array "preferred_aps_${IFVAR}")"
|
||||||
[ -z "${pref}" ] && pref="$(_get_array "preferred_aps")"
|
[ -z "${pref}" ] && pref="$(_get_array "preferred_aps")"
|
||||||
|
|
||||||
local IFS="
|
local IFS="$__IFS"
|
||||||
"
|
|
||||||
for ssid in ${pref}; do
|
for ssid in ${pref}; do
|
||||||
unset IFS
|
unset IFS
|
||||||
while [ ${i} -le ${APS} ] ; do
|
while [ ${i} -le ${APS} ] ; do
|
||||||
@ -437,8 +433,7 @@ iwconfig_connect_not_preferred() {
|
|||||||
|
|
||||||
local prefa="$(_get_array preferred_aps)"
|
local prefa="$(_get_array preferred_aps)"
|
||||||
pref=false
|
pref=false
|
||||||
local IFS="
|
local IFS="$__IFS"
|
||||||
"
|
|
||||||
for ssid in ${prefa}; do
|
for ssid in ${prefa}; do
|
||||||
if [ "${e}" = "${ssid}" ] ; then
|
if [ "${e}" = "${ssid}" ] ; then
|
||||||
pref=true
|
pref=true
|
||||||
|
Loading…
Reference in New Issue
Block a user