From 397e40d52ab44daee99de73970e0ae2e70cce346 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 9 Sep 2014 17:50:55 -0300 Subject: find_dhclient_process() returns an int, not string --- etc/inc/pfsense-utils.inc | 2 +- etc/inc/service-utils.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 5b5c1dc..3892ba6 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1250,7 +1250,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']) <> "") + if (find_dhclient_process($ifinfo['if']) != 0) $ifinfo['dhcplink'] = "up"; else $ifinfo['dhcplink'] = "down"; diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index 600682f..297a283 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -171,7 +171,7 @@ function is_pid_running($pidfile) { function is_dhcp_running($interface) { $status = find_dhclient_process($interface); - if($status <> "") + if($status != 0) return true; return false; } -- cgit v1.1