[source] bcm53xx: generate proper network config for Tenda AC9

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 18 01:41:06 PDT 2016


rmilecki pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=31fada8beca63e1d786aa21d364afedf104f6573

commit 31fada8beca63e1d786aa21d364afedf104f6573
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Thu Aug 18 10:39:34 2016 +0200

    bcm53xx: generate proper network config for Tenda AC9
    
    It's a more complex device with 2 interfaces on the SoC, one we can use
    for LAN and another for WAN.
    
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 target/linux/bcm53xx/base-files/etc/board.d/02_network | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/target/linux/bcm53xx/base-files/etc/board.d/02_network b/target/linux/bcm53xx/base-files/etc/board.d/02_network
index 70ae89c..5e6092a 100755
--- a/target/linux/bcm53xx/base-files/etc/board.d/02_network
+++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network
@@ -8,6 +8,16 @@
 board_config_update
 
 board=$(cat /proc/device-tree/compatible | tr '\0' '\t' | cut -f 1)
+
+case "$board" in
+tenda,ac9)
+	ucidef_add_switch "switch0" \
+		"1:lan" "2:lan" "3:lan" "4:lan" "8 at eth0" "0:wan" "5 at eth1"
+	board_config_flush
+	exit 0
+	;;
+esac
+
 case "$board" in
 asus,rt-ac87u)
 	ifname=eth1



More information about the lede-commits mailing list