diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 | ||||
-rw-r--r-- | 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; } |