mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 14:34:27 -05:00 
			
		
		
		
	remove references to the old switch driver
Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 35503
This commit is contained in:
		
							parent
							
								
									ec19a23bae
								
							
						
					
					
						commit
						84d306d23c
					
				@ -8,19 +8,4 @@ set_preinit_iface() {
 | 
				
			|||||||
	ifconfig $ifname 0.0.0.0 up
 | 
						ifconfig $ifname 0.0.0.0 up
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
check_module () {
 | 
					 | 
				
			||||||
  module="$1"; shift; params="$*"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  insmod "$module" "$params"
 | 
					 | 
				
			||||||
  sleep 1
 | 
					 | 
				
			||||||
  grep "^$module" /proc/modules
 | 
					 | 
				
			||||||
  return $?
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
init_iface() {
 | 
					 | 
				
			||||||
	insmod switch-core
 | 
					 | 
				
			||||||
	check_module switch-robo || check_module switch-adm || rmmod switch-core
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
boot_hook_add preinit_main set_preinit_iface
 | 
					boot_hook_add preinit_main set_preinit_iface
 | 
				
			||||||
boot_hook_add preinit_main init_iface
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user