shithub: rc

ref: 0ed7f3744e293b2129dd8fdf12a0cdb8d8264519
dir: /on/

View raw version
#!/bin/rc
# 1. Connect the USB Ethernet Adapter to computer.
# 2. Boot computer.
# 3. Remove and then re-connect the USB Ethernet Adapter.
# 4. Run this script.
dev=`{usbtree | grep -e 'LAN|vid 0x17ef did 0x3098' | awk '{print $1}' | sed 's/^ep//g; s/\..*//'}
nusb/ether $dev && 
ip/ipconfig -D ether /net/etherU^$dev