diff options
author | Chris Buechler <cmb@cmb-macbook-pro.local> | 2009-03-09 22:14:25 -0400 |
---|---|---|
committer | Chris Buechler <cmb@cmb-macbook-pro.local> | 2009-03-09 22:14:25 -0400 |
commit | f2a5b5e467caa99c78939eea236f0036031a499a (patch) | |
tree | 9a6b3e9c0d300dcfa4624d15e0e24233fe753d89 /etc/inc/pfsense-utils.inc | |
parent | ac33db20c510fcdd8b810b0fed0aa8e1867beaf5 (diff) | |
download | pfsense-f2a5b5e467caa99c78939eea236f0036031a499a.zip pfsense-f2a5b5e467caa99c78939eea236f0036031a499a.tar.gz |
Fix display of DHCP status on Status -> Interfaces
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1e2e775..03b63eb 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -3048,6 +3048,13 @@ function get_interface_info($ifdescr) { switch ($config['interfaces'][$if]['ipaddr']) { /* DHCP? -> see if dhclient is up */ case "dhcp": + /* see if dhclient is up */ + if (is_dhcp_running($ifinfo['if']) == true) + $ifinfo['dhcplink'] = "up"; + else + $ifinfo['dhcplink'] = "down"; + + break; case "carpdev-dhcp": /* see if dhclient is up */ if (is_dhcp_running($ifinfo['if']) == true) @@ -3502,4 +3509,4 @@ function compare_hostname_to_dnscache($hostname) { } -?> +?>
\ No newline at end of file |