summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-17 20:08:09 +0000
committerErmal <eri@pfsense.org>2011-01-17 20:08:09 +0000
commit9d7d238816b6b3f087af1c5246e59dec8629a228 (patch)
treee9bd59e1369c40d6ad147124c947e2d744e1403b
parent756720e24ce18514f69311a01dc035d78ac32bf3 (diff)
downloadpfsense-9d7d238816b6b3f087af1c5246e59dec8629a228.zip
pfsense-9d7d238816b6b3f087af1c5246e59dec8629a228.tar.gz
Really do not deactivate netgraph if the underlying interface is needed by it!
-rw-r--r--etc/inc/interfaces.inc21
1 files changed, 11 insertions, 10 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 2d16927..97b59d8 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -116,17 +116,18 @@ function interface_netgraph_needed($interface = "wan") {
$found = false;
break;
}
- } else {
- $realif = get_real_interface($interface);
- if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
- foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
- if ($realif == $ppp['if']) {
- $found = true;
- break;
- }
+ }
+ }
+ if ($found == false) {
+ $realif = get_real_interface($interface);
+ if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
+ foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
+ if ($realif == $ppp['if']) {
+ $found = true;
+ break;
}
- }
- }
+ }
+ }
}
if ($found == false) {
OpenPOWER on IntegriCloud