From 3eb00b491f82d048837bb93a5558e2edf6062e2e Mon Sep 17 00:00:00 2001 From: gnhb Date: Sun, 23 Jan 2011 09:49:51 +0700 Subject: We don't want to detach netgraph nodes from interfaces that are used by any PPPoE/PPTP/L2TP configurations. --- etc/inc/interfaces.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a414bd7..59f74c2 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -126,6 +126,13 @@ function interface_netgraph_needed($interface = "wan") { $found = true; break; } + $ports = explode(',',$ppp['ports']); + foreach($ports as $pid => $port){ + if ($realif == $port) { + $found = true; + break; + } + } } } } -- cgit v1.1