mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 05:27:24 +00:00
disable rndis if usb ethernet is also enabled
Disable USB RNDIS mode if USB Ethernet support is also enabled. They are not compatible
This commit is contained in:
parent
d330294c1d
commit
f42a38794e
@ -350,7 +350,7 @@ if [[ "$ENABLE_USB_ETH" == "true" ]]; then
|
||||
netloop eth0
|
||||
|
||||
else
|
||||
echo "usb ethernet disabled"
|
||||
echo "USB Ethernet disabled"
|
||||
fi
|
||||
|
||||
if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
@ -394,10 +394,13 @@ if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
sleep 1
|
||||
done
|
||||
else
|
||||
echo "usb direct disabled"
|
||||
echo "USB Direct disabled"
|
||||
fi
|
||||
|
||||
if [[ "$ENABLE_USB_RNDIS" == "true" ]]; then
|
||||
if [[ "$ENABLE_USB_ETH" == "true" ]] || [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
echo "RNDIS is not compatible with ENABLE_USB_ETH or ENABLE_USB_DIRECT. Please enable only ENABLE_USB_RNDIS"
|
||||
else
|
||||
|
||||
insmod $KMOD_PATH/kernel/drivers/net/usb/usbnet.ko
|
||||
insmod $KMOD_PATH/kernel/drivers/net/usb/cdc_ether.ko
|
||||
@ -414,8 +417,9 @@ if [[ "$ENABLE_USB_RNDIS" == "true" ]]; then
|
||||
echo "wlan0 not ready yet..."
|
||||
sleep 1
|
||||
done
|
||||
else
|
||||
echo "usb direct disabled"
|
||||
fi
|
||||
else
|
||||
echo "usb rndis disabled"
|
||||
fi
|
||||
|
||||
if [[ "$ENABLE_WIREGUARD" == "true" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user