diff options
author | Ermal <eri@pfsense.org> | 2010-12-21 23:16:17 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-21 23:45:54 +0000 |
commit | 31eee4a6a04332251d25693234547316a4d1523c (patch) | |
tree | 4648b7f5593aca1ae13ee72b741d9ff0576d200a /etc/inc/interfaces.inc | |
parent | 19f6b3c5a52c0274a191169dc04252c556c4ddd1 (diff) | |
download | pfsense-31eee4a6a04332251d25693234547316a4d1523c.zip pfsense-31eee4a6a04332251d25693234547316a4d1523c.tar.gz |
Do not do useless work.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 5 |
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 |