summaryrefslogtreecommitdiffstats
path: root/etc/inc/service-utils.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-07-14 09:15:05 -0700
committerPhil Davis <phil.davis@world.inf.org>2013-07-14 09:15:05 -0700
commit4701c8de28e7cb6c1f06cfbd4500631e574d012a (patch)
treef8c1cf688f74af27e135545547b095c33712d9a9 /etc/inc/service-utils.inc
parent9590e0de97bef964f16117f0094db24406754b64 (diff)
downloadpfsense-4701c8de28e7cb6c1f06cfbd4500631e574d012a.zip
pfsense-4701c8de28e7cb6c1f06cfbd4500631e574d012a.tar.gz
Correctly decide if dhcrelay is enabled
Diffstat (limited to 'etc/inc/service-utils.inc')
-rw-r--r--etc/inc/service-utils.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc
index a3f3111..278f9f0 100644
--- a/etc/inc/service-utils.inc
+++ b/etc/inc/service-utils.inc
@@ -282,13 +282,8 @@ function get_services() {
if ($oc['if'] && (!link_interface_to_bridge($if)))
$iflist[$if] = $if;
}
- $show_dhcprelay = false;
- foreach($iflist as $if) {
- if(isset($config['dhcrelay'][$if]['enable']))
- $show_dhcprelay = true;
- }
- if($show_dhcprelay == true) {
+ if(isset($config['dhcrelay']['enable'])) {
$pconfig = array();
$pconfig['name'] = "dhcrelay";
$pconfig['description'] = gettext("DHCP Relay");
OpenPOWER on IntegriCloud