summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index a8d19bf..24e478e 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1396,7 +1396,7 @@ function get_interface_info($ifdescr) {
/* DHCP? -> see if dhclient is up */
case "dhcp":
/* see if dhclient is up */
- if (find_dhclient_process($ifinfo['if']) == true)
+ if (find_dhclient_process($ifinfo['if']) <> "")
$ifinfo['dhcplink'] = "up";
else
$ifinfo['dhcplink'] = "down";
@@ -1404,7 +1404,7 @@ function get_interface_info($ifdescr) {
break;
case "carpdev-dhcp":
/* see if dhclient is up */
- if (find_dhclient_process($ifinfo['if']) == true)
+ if (find_dhclient_process($ifinfo['if']) <> "")
$ifinfo['dhcplink'] = "up";
else
$ifinfo['dhcplink'] = "down";
OpenPOWER on IntegriCloud