From 69dfdda157e86c4aabbae9e51ecf76911f833af2 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 20 Jan 2019 09:13:24 +0100 Subject: [PATCH] ath79: fix port order for dir 825-c1 and 835-a1 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 --- .../ath79/base-files/etc/board.d/02_network | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 3eb0e413f3..1569b110bd 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -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"