[openwrt/openwrt] ramips: mt76x8: tidy up 02_network

LEDE Commits lede-commits at lists.infradead.org
Sun Dec 12 03:38:41 PST 2021


mans0n pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/91e37b60a0b1181b77aabf7269450bf76d220c40

commit 91e37b60a0b1181b77aabf7269450bf76d220c40
Author: Sungbo Eo <mans0n at gorani.run>
AuthorDate: Sun Dec 12 20:25:56 2021 +0900

    ramips: mt76x8: tidy up 02_network
    
    * fix alphabetic sorting
    * consolidate duplicate cases
    
    Signed-off-by: Sungbo Eo <mans0n at gorani.run>
---
 .../linux/ramips/mt76x8/base-files/etc/board.d/02_network   | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
index d3c7f9c3f9..08b2e6cebc 100644
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
@@ -34,10 +34,6 @@ ramips_setup_interfaces()
 		ucidef_add_switch_attr "switch0" "enable" "false"
 		ucidef_set_interface_lan "eth0"
 		;;
-	tplink,tl-mr3020-v3)
-		ucidef_add_switch "switch0" \
-			"0:lan" "6 at eth0"
-		;;
 	asus,rt-n10p-v3|\
 	asus,rt-n11p-b1|\
 	asus,rt-n12-vp-b1|\
@@ -61,10 +57,7 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"2:lan:2" "3:lan:1" "4:wan" "6 at eth0"
 		;;
-	duzun,dm06)
-		ucidef_add_switch "switch0" \
-			"1:lan" "0:wan" "6 at eth0"
-		;;
+	duzun,dm06|\
 	glinet,gl-mt300n-v2)
 		ucidef_add_switch "switch0" \
 			"1:lan" "0:wan" "6 at eth0"
@@ -124,6 +117,10 @@ ramips_setup_interfaces()
 		ucidef_add_switch "switch0" \
 			"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t at eth0"
 		;;
+	tplink,tl-mr3020-v3)
+		ucidef_add_switch "switch0" \
+			"0:lan" "6 at eth0"
+		;;
 	tplink,tl-mr6400-v4)
 		ucidef_add_switch "switch0" \
 			"1:lan" "2:lan" "3:lan" "4:wan" "6 at eth0"



More information about the lede-commits mailing list