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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/pfsense-utils.inc') 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"; -- cgit v1.1