mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	base-files: cached state vars after scan_interfaces might be out of sync when binding dhcp leases, this could lead to an unconfigured wan interface in certain circumstances. Replace config_get calls with uci_get_state
SVN-Revision: 23091
This commit is contained in:
		
							parent
							
								
									b07620df31
								
							
						
					
					
						commit
						84b7b812f3
					
				@ -21,9 +21,9 @@ setup_interface () {
 | 
			
		||||
	local user_router
 | 
			
		||||
 | 
			
		||||
	[ -n "$ifc" ] && {
 | 
			
		||||
		config_get old_ip        "$ifc" ipaddr
 | 
			
		||||
		config_get old_broadcast "$ifc" broadcast
 | 
			
		||||
		config_get old_subnet    "$ifc" netmask
 | 
			
		||||
		old_ip="$(uci_get_state network "$ifc" ipaddr)"
 | 
			
		||||
		old_broadcast="$(uci_get_state network "$ifc" broadcast)"
 | 
			
		||||
		old_subnet="$(uci_get_state network "$ifc" netmask)"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[ "$ip" != "$old_ip" ] \
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user