diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 21:27:47 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 21:27:47 +0000 |
commit | b5ce5ea8768ca11c326eb97acaa8076f41c620d2 (patch) | |
tree | 37a896c572f87e178880f5b7c63c66fcf38139d6 /usr/local | |
parent | fae80dfcc84d932af52cf3827a8a98c9b6892e8e (diff) | |
download | pfsense-b5ce5ea8768ca11c326eb97acaa8076f41c620d2.zip pfsense-b5ce5ea8768ca11c326eb97acaa8076f41c620d2.tar.gz |
Add code from databeestje to finish off Renew/Release
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/status_interfaces.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 8d6be83..49bf93e 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -101,6 +101,16 @@ function get_interface_info($ifdescr) { else $ifinfo['dhcplink'] = "down"; } + for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { + $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; + if (($ifdescr == "opt$j") && ($config['interfaces']['opt' . $j]['ipaddr'] == "dhcp")) { + /* see if dhclient is up */ + if (is_process_running("dhclient") == true) + $ifinfo['dhcplink'] = "up"; + else + $ifinfo['dhcplink'] = "down"; + } + } /* PPPoE interface? -> get status from virtual interface */ if (($ifdescr == "wan") && ($config['interfaces']['wan']['ipaddr'] == "pppoe")) { |