From 0c8de638040865a215545766aad8c48bd2ebc46a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 23 Jun 2005 23:39:42 +0000 Subject: is_service_running returns true, use it. --- usr/local/www/status_interfaces.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 32b58a7..ccab892 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -97,7 +97,7 @@ function get_interface_info($ifdescr) { /* DHCP? -> see if dhclient is up */ if (($ifdescr == "wan") && ($config['interfaces']['wan']['ipaddr'] == "dhcp")) { /* see if dhclient is up */ - if ($ifinfo['status'] == "up" && is_service_running("dhclient")) + if ($ifinfo['status'] == "up" && is_service_running("dhclient") == true) $ifinfo['dhcplink'] = "up"; else $ifinfo['dhcplink'] = "down"; -- cgit v1.1