summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-29 19:32:29 +0000
committerErmal <eri@pfsense.org>2011-08-29 19:32:48 +0000
commit737dbc05c13ddf31dc238ac59b406cc62716482a (patch)
tree3684cc2d74275d54382b617c2e189f33446bf77d
parentf067d9247989292daf2f6ce7efea4b6c89135945 (diff)
downloadpfsense-737dbc05c13ddf31dc238ac59b406cc62716482a.zip
pfsense-737dbc05c13ddf31dc238ac59b406cc62716482a.tar.gz
Fixes #1666. Check if the interface needs to be added to a bridge during rc.newwanip as well.
-rwxr-xr-xetc/rc.newwanip5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 07ff33f..2c6a641 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -109,6 +109,11 @@ $grouptmp = link_interface_to_group($interface);
if (!empty($grouptmp))
array_walk($grouptmp, 'interface_group_add_member');
+unset($bridgetmp);
+$bridgetmp = link_interface_to_bridge($interface);
+if (!empty($bridgetmp))
+ interface_bridge_add_member($bridgetmp, $interface_real);
+
/* reconfigure static routes (kernel may have deleted them) */
system_routing_configure($interface);
OpenPOWER on IntegriCloud