ramips: Archer C50v1: fix switch port numbering
authorThibaut VARENE <hacks@slashdirt.org>
Fri, 28 Jul 2017 20:36:52 +0000 (22:36 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 29 Jul 2017 07:25:00 +0000 (09:25 +0200)
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>
target/linux/ramips/base-files/etc/board.d/02_network

index 1ec267279e081f532177c3d65b43d1dda81e89ea..1778dc93297136e3196ad3f74e4b3bea7535cee0 100755 (executable)
@@ -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"