Project

General

Profile

« Previous | Next » 

Revision e017a46a

Added by Ermal LUÇI over 12 years ago

If the interface is not enabled do not try to configure it

View differences:

etc/inc/interfaces.inc
1147 1147
			mwexec("/bin/kill {$pidv6}");
1148 1148
		sleep(3);
1149 1149
		unlink_if_exists("{$g['varetc_path']}/dhcp6c_{$interface}.conf");
1150
		if(does_interface_exist("$realif")) {
1150
		if (does_interface_exist("$realif")) {
1151 1151
			$ip6 = get_interface_ipv6($interface);
1152 1152
			if (is_ipaddrv6($ip6))
1153 1153
				mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " inet6 {$ip6} delete", true);
......
2657 2657

  
2658 2658
	$wancfg = $config['interfaces'][$interface];
2659 2659

  
2660
	if (!isset($wancfg['enable']))
2661
		return;
2662

  
2660 2663
	$realif = get_real_interface($interface);
2661 2664
	$realhwif_array = get_parent_interface($interface);
2662 2665
	// Need code to handle MLPPP if we ever use $realhwif for MLPPP handling

Also available in: Unified diff