diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2012-10-10 00:07:26 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2012-10-10 00:10:52 +0000 |
commit | 9a9c2acd8d0a44799c1c0199bf7e14640f6a86f3 (patch) | |
tree | b3cc17d31d41fa67204b42179b227f2003e1d556 /net/bridge.sh | |
parent | b68d4b3580b6c3b38712e415ac5b874228103cd1 (diff) | |
download | openrc-9a9c2acd8d0a44799c1c0199bf7e14640f6a86f3.tar.gz openrc-9a9c2acd8d0a44799c1c0199bf7e14640f6a86f3.tar.bz2 openrc-9a9c2acd8d0a44799c1c0199bf7e14640f6a86f3.tar.xz |
net/{bridge,iproute2}: Stricter iproute2 ip link syntax & promisc handling
The 'dev' argument is only optional for ethX devices, for others it is
mandatory, so we should always include it.
Also tweak when promisc mode is applied to bridges.
Patches submitted by Denis Kaganovich <mahatma@bspu.unibel.by>.
X-Gentoo-Bug: #431204
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=431204
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'net/bridge.sh')
-rw-r--r-- | net/bridge.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bridge.sh b/net/bridge.sh index 4f3618a..60d3eeb 100644 --- a/net/bridge.sh +++ b/net/bridge.sh @@ -119,10 +119,8 @@ bridge_pre_start() return 1 fi # The interface is known to exist now - _set_flag promisc _up if ! brctl addif "${BR_IFACE}" "${x}"; then - _set_flag -promisc eend 1 return 1 fi @@ -144,6 +142,7 @@ bridge_pre_start() ) || return 1 # Bring up the bridge + _set_flag promisc _up } |