summaryrefslogtreecommitdiffstats
path: root/etc/rc.linkup
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-04-12 06:20:32 +0000
committerErmal <eri@pfsense.org>2014-04-12 06:20:32 +0000
commitf96b9a1830ee2b08c142207ebfa4f695d0628853 (patch)
treeee62a2a5a5e9779188b66b8a17b311becbcc3fc7 /etc/rc.linkup
parentd22169cfd68a26c04ca6d1aa997575f1b3e4cc80 (diff)
downloadpfsense-f96b9a1830ee2b08c142207ebfa4f695d0628853.zip
pfsense-f96b9a1830ee2b08c142207ebfa4f695d0628853.tar.gz
Take care of the loops reported for OpenVPN in tap mode. Also fixes the problems of tap disappearing from bridge if its a member.
Diffstat (limited to 'etc/rc.linkup')
-rwxr-xr-xetc/rc.linkup3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.linkup b/etc/rc.linkup
index 1994336..b39f876 100755
--- a/etc/rc.linkup
+++ b/etc/rc.linkup
@@ -60,7 +60,8 @@ function handle_argument_group($iface, $argument2) {
interfaces_staticarp_configure($iface);
$iface = get_real_interface($iface);
interfaces_bring_up($iface);
- if ($argument2 == "start" || $argument2 == "up")
+ /* NOTE: Do not generate event for OpenVPN since the daemon does that for us. */
+ if (($argument2 == "start" || $argument2 == "up") && substr($iface, 0, 4) != "ovpn")
send_event("interface newip {$iface}");
} else {
switch ($argument2) {
OpenPOWER on IntegriCloud