[openwrt/openwrt] ramips: mt7621: 02_network optimization

LEDE Commits lede-commits at lists.infradead.org
Sat Mar 8 07:37:39 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a0449f8cf3a53f746c409ce033a6c78065c5edde

commit a0449f8cf3a53f746c409ce033a6c78065c5edde
Author: Mieczyslaw Nalewaj <namiltd at yahoo.com>
AuthorDate: Sat Mar 1 17:41:50 2025 +0100

    ramips: mt7621: 02_network optimization
    
    Merging repeating blocks inside the ramips_setup_interfaces() function.
    
    Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
    Link: https://github.com/openwrt/openwrt/pull/18146
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../mt7621/base-files/etc/board.d/02_network       | 23 ++++++++--------------
 1 file changed, 8 insertions(+), 15 deletions(-)

diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index f40e9616d0..650fef62a8 100644
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -1,4 +1,3 @@
-
 . /lib/functions.sh
 . /lib/functions/uci-defaults.sh
 . /lib/functions/system.sh
@@ -23,6 +22,7 @@ ramips_setup_interfaces()
 	mercusys,mr70x-v1|\
 	netgear,wax202|\
 	sim,simax1800t|\
+	tplink,mr600-v2-eu|\
 	xiaomi,mi-router-3-pro|\
 	xiaomi,mi-router-ac2100|\
 	xiaomi,mi-router-cr6606|\
@@ -68,12 +68,18 @@ ramips_setup_interfaces()
 		ucidef_set_interface_lan "lan"
 		;;
 	asiarf,ap7621-001|\
+	comfast,cf-e390ax|\
+	comfast,cf-ew72-v2|\
+	cudy,m1800|\
 	dna,valokuitu-plus-ex400|\
 	humax,e10|\
 	keenetic,kn-3510|\
+	meig,slt866|\
 	openfi,5pro|\
 	wavlink,ws-wn572hp3-4g|\
-	winstars,ws-wn583a6)
+	winstars,ws-wn583a6|\
+	yuncore,ax820|\
+	zyxel,nr7101)
 		ucidef_set_interfaces_lan_wan "lan" "wan"
 		;;
 	asiarf,ap7621-nv1|\
@@ -105,11 +111,6 @@ ramips_setup_interfaces()
 		uci add_list firewall. at zone[1].network='eth_data'
 		uci add_list firewall. at zone[1].network='eth_om'
 		;;
-	cudy,m1800|\
-	yuncore,ax820|\
-	zyxel,nr7101)
-		ucidef_set_interfaces_lan_wan "lan" "wan"
-		;;
 	dlink,covr-x1860-a1)
 		ucidef_set_interfaces_lan_wan "ethernet" "internet"
 		;;
@@ -155,9 +156,6 @@ ramips_setup_interfaces()
 	tplink,tl-wpa8631p-v3)
 		ucidef_set_interface_lan "lan1 lan2 lan3 plc0"
 		;;
-	tplink,mr600-v2-eu)
-		ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
-		;;
 	ubnt,edgerouter-x)
 		ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0"
 		;;
@@ -178,11 +176,6 @@ ramips_setup_interfaces()
 	ruijie,rg-ew1200g-pro-v1.1)
 		ucidef_set_interfaces_lan_wan "lan3 lan2 lan1" "wan"
 		;;
-	comfast,cf-e390ax|\
-	comfast,cf-ew72-v2|\
-	meig,slt866)
-		ucidef_set_interfaces_lan_wan "lan" "wan"
-		;;
 	*)
 		ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
 		;;




More information about the lede-commits mailing list