mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 14:57:19 +00:00
Add support for auto detecting the USB Ethernet adapter, and loading its respective driver
This commit is contained in:
parent
e5fc16696d
commit
6ecc33efa3
@ -218,9 +218,16 @@ if [[ "$ENABLE_USB_ETH" == "true" ]]; then
|
|||||||
|
|
||||||
insmod $KMOD_PATH/kernel/drivers/net/usb/usbnet.ko
|
insmod $KMOD_PATH/kernel/drivers/net/usb/usbnet.ko
|
||||||
|
|
||||||
for i in $(echo "$ENABLE_USB_ETH_MODULES" | tr "," "\n")
|
for DEVICE in `lsusb | awk '{print $6}'| tr '[:lower:]' '[:upper:]'`; do
|
||||||
do
|
case $DEVICE in
|
||||||
insmod $KMOD_PATH/kernel/drivers/net/usb/$i.ko
|
'0B95:1780' | '0B95:7720' | '0B95:772B')
|
||||||
|
echo "Loading ASIX Ethernet driver..."
|
||||||
|
modprobe asix
|
||||||
|
;;
|
||||||
|
'0B95:1790')
|
||||||
|
echo "Loading AX88179 Gigabit Ethernet driver..."
|
||||||
|
modprobe ax88179_178a
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
swap_enable
|
swap_enable
|
||||||
|
@ -12,7 +12,6 @@ WEB_CAM_FPS_RATE="25"
|
|||||||
CUSTOM_HOSTNAME="WCV3"
|
CUSTOM_HOSTNAME="WCV3"
|
||||||
|
|
||||||
ENABLE_USB_ETH="false"
|
ENABLE_USB_ETH="false"
|
||||||
ENABLE_USB_ETH_MODULES="asix"
|
|
||||||
|
|
||||||
ENABLE_USB_DIRECT="false"
|
ENABLE_USB_DIRECT="false"
|
||||||
USB_DIRECT_MAC_ADDR="02:01:02:03:04:08"
|
USB_DIRECT_MAC_ADDR="02:01:02:03:04:08"
|
||||||
|
Loading…
Reference in New Issue
Block a user