Project

General

Profile

« Previous | Next » 

Revision 63f72828

Added by Jim Pingle over 11 years ago

If the interface is configured and not enabled, bail. We do not need to change settings for disabled interfaces. Fixes #3313

View differences:

etc/rc.newwanip
70 70
	$interface_real = $argument;
71 71
}
72 72

  
73
/* If the interface is configured and not enabled, bail. We do not need to change settings for disabled interfaces. #3313 */
74
if (is_array($config['interfaces'][$interface]) && !isset($config['interfaces'][$interface]['enable'])) {
75
	log_error("Interface is disabled, nothing to do.");
76
	return;
77
}
78

  
73 79
if(empty($argument))
74 80
	$curwanip = get_interface_ip();
75 81
else {

Also available in: Unified diff