Project

General

Profile

« Previous | Next » 

Revision 7cc7e84d

Added by Scott Ullrich over 19 years ago

Remove the LAN IP address if user has cleared value

Ticket #654

View differences:

etc/inc/interfaces.inc
94 94

  
95 95
	$lancfg = $config['interfaces']['lan'];
96 96

  
97
	/* if user has removed ip address, clear it*/
98
	if($lancfg['ipaddr'] == "")
99
		mwexec("/sbin/ifconfig {$lancfg['if']} delete");
100

  
97 101
	/* wireless configuration? */
98 102
	if (is_array($lancfg['wireless']))
99 103
		interfaces_wireless_configure($lancfg['if'], $lancfg['wireless']);

Also available in: Unified diff