ath79: fix port order for dir 825-c1 and 835-a1
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 20 Jan 2019 08:13:24 +0000 (09:13 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 22 Jan 2019 08:05:59 +0000 (09:05 +0100)
LAN ports 1 and 4 and 2 and 3 are interchanged. Fix this in 02_network
so the ports show up in the correct order in luci.

The correct ucidef_add_switch line is already present. This commit moves
the blocks around to keep alphabetical order.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
target/linux/ath79/base-files/etc/board.d/02_network

index 3eb0e413f36b1ea757e862857c9fade368200a8a..1569b110bdfbf4b8a66761f8d88d69b5f2e9ec26 100755 (executable)
@@ -72,13 +72,10 @@ ath79_setup_interfaces()
                ;;
        dlink,dir-825-c1|\
        dlink,dir-835-a1|\
-       iodata,etg3-r|\
-       iodata,wn-ac1167dgr|\
-       iodata,wn-ac1600dgr2|\
-       iodata,wn-ag300dgr|\
-       pcs,cr5000)
+       dlink,dir-859-a1|\
+       tplink,tl-wr1043nd-v4)
                ucidef_add_switch "switch0" \
-                       "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
+                       "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;
        elecom,wrc-1750ghbk2-i|\
        elecom,wrc-300ghbk2-i)
@@ -108,6 +105,14 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan:2" "3:lan:1" "1:wan"
                ;;
+       iodata,etg3-r|\
+       iodata,wn-ac1167dgr|\
+       iodata,wn-ac1600dgr2|\
+       iodata,wn-ag300dgr|\
+       pcs,cr5000)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
+       ;;
        nec,wg800hp)
                ucidef_add_switch "switch0" \
                        "0@eth0" "2:lan" "3:lan" "4:lan" "1:wan"
@@ -172,11 +177,6 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" "6@eth0"
                ;;
-       dlink,dir-859-a1|\
-       tplink,tl-wr1043nd-v4)
-               ucidef_add_switch "switch0" \
-                       "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
-               ;;
        tplink,tl-wr2543-v1)
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0"