ref: 17b6f737c690690a6fb1d925bfd6a6ced7a4bda6
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)