yukky
New Around Here
Hello,
Hardware: RT-N66U
Firmware: 380.62
I am trying to connect a Raspberry Pi Zero device as an Ethernet gadget via the USB port on the router. Everything works, except I need to manually put the usb0 interface up and add it to the br0 bridge. How can I automate this?
When plugging in the device:
	
	
	
		
commands I would like to run upon device registered
	
	
	
		
The commands need to be re-run everytime the USB gadget is plugged in/out.
What would be the best way to automate this, or is there a way to have this configuration persist?
				
			Hardware: RT-N66U
Firmware: 380.62
I am trying to connect a Raspberry Pi Zero device as an Ethernet gadget via the USB port on the router. Everything works, except I need to manually put the usb0 interface up and add it to the br0 bridge. How can I automate this?
When plugging in the device:
		Code:
	
	usb 1-1.2: new high speed USB device using ehci_hcd and address 5
hub 1-1:1.0: unable to enumerate USB device on port 2
usb 1-1.2: new high speed USB device using ehci_hcd and address 6
hub 1-1:1.0: unable to enumerate USB device on port 2
usb 1-1.2: new high speed USB device using ehci_hcd and address 7
usb 1-1.2: configuration #1 chosen from 2 choices
usb0: register 'cdc_ether' at usb-0000:00:04.1-1.2, CDC Ethernet Device, 06:b2:42:13:0d:a2commands I would like to run upon device registered
		Code:
	
	ifconfig usb0 up
brctl addif br0 usb0The commands need to be re-run everytime the USB gadget is plugged in/out.
What would be the best way to automate this, or is there a way to have this configuration persist?
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
	
 
 
		 
 
		 
 
		 
 
		
 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		