mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	add an optional parameter to scan_interfaces() that can override the network config file (defaults to 'network')
SVN-Revision: 6619
This commit is contained in:
		
							parent
							
								
									b8ca430c7f
								
							
						
					
					
						commit
						f9abb7cbba
					
				@ -24,6 +24,7 @@ find_config() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
scan_interfaces() {
 | 
			
		||||
	local cfgfile="$1"
 | 
			
		||||
	local mode iftype iface ifname device
 | 
			
		||||
	interfaces=
 | 
			
		||||
	config_cb() {
 | 
			
		||||
@ -50,7 +51,7 @@ scan_interfaces() {
 | 
			
		||||
			;;
 | 
			
		||||
		esac
 | 
			
		||||
	}
 | 
			
		||||
	config_load network
 | 
			
		||||
	config_load "${cfgfile:-network}"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
add_vlan() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user