Selaa lähdekoodia

ifupdown: allow setting the bridge forward delay

Signed-off-by: Phil Sutter <phil@nwl.cc>
Phil Sutter 14 vuotta sitten
vanhempi
commit
6f325a3b2c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      package/base-files/src/etc/network/if-pre-up.d/03-bridge

+ 1 - 0
package/base-files/src/etc/network/if-pre-up.d/03-bridge

@@ -15,6 +15,7 @@ case "$IF_BRIDGE_PORTS" in
 esac
 
 brctl addbr $IFACE || exit 1
+[[ -n $IF_BRIDGE_FD ]] && brctl setfd $IFACE $IF_BRIDGE_FD
 
 for IF in $INTERFACES; do
   if ! grep -q $IF /proc/net/dev; then