diff options
author | Roy Marples <roy@marples.name> | 2007-10-30 11:38:23 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-30 11:38:23 +0000 |
commit | 05f119a78eb803937413cd84f8ec1deb93355586 (patch) | |
tree | 885547b9bfbef8231f4dd8b8217134b1e5fa6ad4 /net.Linux/bridge.sh | |
parent | 7d2c240c2584c4cefaebcff86441d31b927293ed (diff) |
Embed newlines in __IFS to save our identing
Diffstat (limited to 'net.Linux/bridge.sh')
-rw-r--r-- | net.Linux/bridge.sh | 7 |
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 |