diff options
Diffstat (limited to 'net.Linux')
-rw-r--r-- | net.Linux/bridge.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net.Linux/bridge.sh b/net.Linux/bridge.sh index a97e525a..a6913fd9 100644 --- a/net.Linux/bridge.sh +++ b/net.Linux/bridge.sh @@ -38,17 +38,17 @@ bridge_pre_start() { eend 1 return 1 fi - - eval set -- ${opts} - for x in "$@" ; do - case " ${x} " in - *" ${IFACE} "*) ;; - *) x="${x} ${IFACE}" ;; - esac - brctl ${x} - done fi + eval $(_get_array "brctl_${IFVAR}") + for x in "$@" ; do + set -- ${x} + x=$1 + shift + set -- "${x}" "${IFACE}" "$@" + brctl "$@" + done + if [ -n "${ports}" ] ; then einfo "Adding ports to ${IFACE}" eindent @@ -66,7 +66,7 @@ bridge_pre_start() { done eoutdent fi - ) + ) || return 1 # Bring up the bridge _up |