Project

General

Profile

« Previous | Next » 

Revision b5ce5ea8

Added by Scott Ullrich almost 20 years ago

Add code from databeestje to finish off Renew/Release

View differences:

usr/local/www/status_interfaces.php
101 101
		else
102 102
			$ifinfo['dhcplink'] = "down";
103 103
	}
104
        for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
105
                $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
106
                if (($ifdescr == "opt$j") && ($config['interfaces']['opt' . $j]['ipaddr'] == "dhcp")) {
107
                        /* see if dhclient is up */
108
                        if (is_process_running("dhclient") == true)
109
                                $ifinfo['dhcplink'] = "up";
110
                        else
111
                                $ifinfo['dhcplink'] = "down";
112
                }
113
        }
104 114

  
105 115
	/* PPPoE interface? -> get status from virtual interface */
106 116
	if (($ifdescr == "wan") && ($config['interfaces']['wan']['ipaddr'] == "pppoe")) {

Also available in: Unified diff