aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/bridge.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net.Linux/bridge.sh')
-rw-r--r--net.Linux/bridge.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/net.Linux/bridge.sh b/net.Linux/bridge.sh
index e5b1df65..e2c813a0 100644
--- a/net.Linux/bridge.sh
+++ b/net.Linux/bridge.sh
@@ -39,8 +39,7 @@ bridge_pre_start() {
fi
fi
- local IFS="
-"
+ local IFS="$__IFS"
for x in ${opts}; do
unset IFS
set -- ${x}
@@ -49,12 +48,15 @@ bridge_pre_start() {
set -- "${x}" "${IFACE}" "$@"
brctl "$@"
done
+ unset IFS
if [ -n "${ports}" ] ; then
einfo "Adding ports to ${IFACE}"
eindent
+ local IFS="$__IFS"
for x in ${ports}; do
+ unset IFS
ebegin "${x}"
ifconfig "${x}" promisc up
if ! brctl addif "${IFACE}" "${x}" ; then
@@ -64,6 +66,7 @@ bridge_pre_start() {
fi
eend 0
done
+ unset IFS
eoutdent
fi
) || return 1