[LEDE-DEV] [PATCH] brcm2708: USB tethering by default
Christo Nedev
christo.nedev at gmail.com
Wed May 16 14:22:22 PDT 2018
Signed-off-by: Christo Nedev <christo.nedev at gmail.com>
---
target/linux/brcm2708/Makefile | 1 +
target/linux/brcm2708/base-files/etc/board.d/02_network | 13 ++++++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile
index 14dd76972a..c2018e2a91 100644
--- a/target/linux/brcm2708/Makefile
+++ b/target/linux/brcm2708/Makefile
@@ -25,6 +25,7 @@ include $(INCLUDE_DIR)/target.mk
DEFAULT_PACKAGES += \
brcm2708-gpu-fw \
kmod-usb-hid \
+ kmod-usb-net kmod-usb-net-cdc-ether kmod-usb-net-rndis \
kmod-sound-core kmod-sound-arm-bcm2835 \
kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
brcmfmac-firmware-43430-sdio kmod-brcmfmac wpad-mini
diff --git a/target/linux/brcm2708/base-files/etc/board.d/02_network b/target/linux/brcm2708/base-files/etc/board.d/02_network
index c8449bb78f..2d3e1c2214 100755
--- a/target/linux/brcm2708/base-files/etc/board.d/02_network
+++ b/target/linux/brcm2708/base-files/etc/board.d/02_network
@@ -14,14 +14,25 @@ case "$board" in
raspberrypi,model-b |\
raspberrypi,model-b-plus |\
raspberrypi,model-b-rev2 |\
-raspberrypi,2-model-b |\
+raspberrypi,2-model-b)
+ ucidef_set_interface_lan "eth0"
+ ucidef_set_interface_wan "usb0"
+ ;;
+
raspberrypi,3-model-b |\
raspberrypi,3-model-b-plus)
ucidef_set_interface_lan "eth0"
+ ucidef_set_interface_lan "wlan0"
+ ucidef_set_interface_wan "usb0"
+ ;;
+
+raspberrypi,model-zero)
+ ucidef_set_interface_lan "usb0"
;;
raspberrypi,model-zero-w)
ucidef_set_interface_lan "wlan0"
+ ucidef_set_interface_wan "usb0"
;;
esac
--
2.11.0
More information about the Lede-dev
mailing list