summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-21 23:16:17 +0000
committerErmal <eri@pfsense.org>2010-12-21 23:45:54 +0000
commit31eee4a6a04332251d25693234547316a4d1523c (patch)
tree4648b7f5593aca1ae13ee72b741d9ff0576d200a /etc
parent19f6b3c5a52c0274a191169dc04252c556c4ddd1 (diff)
downloadpfsense-31eee4a6a04332251d25693234547316a4d1523c.zip
pfsense-31eee4a6a04332251d25693234547316a4d1523c.tar.gz
Do not do useless work.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index db20f56..2262144 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -117,9 +117,10 @@ function interface_netgraph_needed($interface = "wan") {
}
}
- $realif = get_real_interface($interface);
- if ($found == false)
+ if ($found == false) {
+ $realif = get_real_interface($interface);
pfSense_ngctl_detach("{$realif}:", $realif);
+ }
/* NOTE: We make sure for this on interface_ppps_configure()
* no need to do it here agan.
* else
OpenPOWER on IntegriCloud