aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorThibaut VARENE <hacks@slashdirt.org>2017-07-28 22:36:52 +0200
committerMathias Kresin <dev@kresin.me>2017-07-29 09:25:00 +0200
commit8e67c358e775377c47a716ea0eda96d5ca0f7c66 (patch)
tree81ba912c43fec8e2fd03dbb6f9618cba770c534a /target/linux
parenta9439344e71287cb172cf73880f800dc374fc5b7 (diff)
downloadupstream-8e67c358e775377c47a716ea0eda96d5ca0f7c66.tar.gz
upstream-8e67c358e775377c47a716ea0eda96d5ca0f7c66.tar.bz2
upstream-8e67c358e775377c47a716ea0eda96d5ca0f7c66.zip
ramips: Archer C50v1: fix switch port numbering
Luci shows switch ports in wrong order on that device. This patch fixes switch port numbering and matches them to the device silkscreen. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 1ec267279e..1778dc9329 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -133,7 +133,6 @@ ramips_setup_interfaces()
awm002-evb|\
awm003-evb|\
c20i|\
- c50|\
dir-645|\
f5d8235-v2|\
gl-mt300a|\
@@ -196,6 +195,10 @@ ramips_setup_interfaces()
wrh-300cr)
ucidef_set_interface_lan "eth0"
;;
+ c50)
+ ucidef_add_switch "switch0" \
+ "1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6@eth0"
+ ;;
dir-860l-b1)
ucidef_add_switch "switch0" \
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"