ref: 226edf49ca18ae36c79e2dca477aed203b4a9c81
dir: /on/
#!/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=`{grep -e 'LAN|vid 0x17ef did 0x3098' /dev/usb/*/ctl |
awk '{print $1}' |
sed 's/^\/dev\/usb\/ep//g; s/\..*//'
}
nusb/ether $dev(1) &&
ip/ipconfig -D ether /net/etherU^$dev(1)