Revert "realtek: Fix failsafe mode"
This reverts commit b7ee0786b5.
With the previous commit "realtek: remove rtl83xx vlan 1 special cases"
this is no longer required.
Signed-off-by: Thomas Nixon <tom@tomn.co.uk>
			
			
This commit is contained in:
		
				
					committed by
					
						
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			
						parent
						
							ad712c71ce
						
					
				
				
					commit
					cdb5acac20
				
			@@ -1,13 +0,0 @@
 | 
			
		||||
set_preinit_iface() {
 | 
			
		||||
 | 
			
		||||
	# Create a switch on lan1 to configure the VLAN 1.
 | 
			
		||||
	# Without configuring VLAN ID 1 RTL8380 - RTL9300 will not
 | 
			
		||||
	# forward packets.
 | 
			
		||||
	ip link add name switch type bridge vlan_filtering 1
 | 
			
		||||
	ip link set dev lan1 master switch
 | 
			
		||||
	ip link set lan1 up
 | 
			
		||||
 | 
			
		||||
	pi_ifname=switch
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
boot_hook_add preinit_main set_preinit_iface
 | 
			
		||||
@@ -1,6 +0,0 @@
 | 
			
		||||
remove_switch() {
 | 
			
		||||
	# delete switch created in 05_set_preinit_iface_realtek again
 | 
			
		||||
	ip link del name switch
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
boot_hook_add preinit_main remove_switch
 | 
			
		||||
		Reference in New Issue
	
	Block a user