summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-29 19:33:28 +0000
committerErmal <eri@pfsense.org>2011-08-29 19:33:28 +0000
commit8614f335d1c9d62cdb65e41f235e123e6993368e (patch)
tree83630989cbe718810fdeb5bab9300006e47c96e6 /etc
parentedf1c0d9185a8bc24d407de4ac0c02413f04ad1c (diff)
downloadpfsense-8614f335d1c9d62cdb65e41f235e123e6993368e.zip
pfsense-8614f335d1c9d62cdb65e41f235e123e6993368e.tar.gz
Fixes #1666. Check if the interface needs to be added to a bridge during rc.newwanip as well.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.newwanip5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 1ae72ed..86dac23 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