summaryrefslogtreecommitdiff
path: root/target/linux/bcm53xx
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2016-08-18 10:39:34 +0200
committerRafał Miłecki <rafal@milecki.pl>2016-08-18 10:40:49 +0200
commit31fada8beca63e1d786aa21d364afedf104f6573 (patch)
treee41d4578d10bf92d1cdbdd9f867484f66019f3d1 /target/linux/bcm53xx
parent18eebfe4e5756bc33b8f04c73477bdb1c1fcb7ee (diff)
downloadmtk-20170518-31fada8beca63e1d786aa21d364afedf104f6573.zip
mtk-20170518-31fada8beca63e1d786aa21d364afedf104f6573.tar.gz
mtk-20170518-31fada8beca63e1d786aa21d364afedf104f6573.tar.bz2
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@milecki.pl>
Diffstat (limited to 'target/linux/bcm53xx')
-rwxr-xr-xtarget/linux/bcm53xx/base-files/etc/board.d/02_network10
1 files changed, 10 insertions, 0 deletions
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@eth0" "0:wan" "5@eth1"
+ board_config_flush
+ exit 0
+ ;;
+esac
+
case "$board" in
asus,rt-ac87u)
ifname=eth1