summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMieczyslaw Nalewaj2025-03-01 16:41:50 +0000
committerHauke Mehrtens2025-03-13 20:52:51 +0000
commit7f512e602aaceddb2f871d8a22de4cf48d7daefd (patch)
tree87eec484218b6b85139e8f464c9001a6b0920d42
parent2b0cce92ae3cd58a96c407d1908693deec6fdf6b (diff)
downloadopenwrt-7f512e602aaceddb2f871d8a22de4cf48d7daefd.tar.gz
ramips: mt7621: 02_network optimization
Merging repeating blocks inside the ramips_setup_interfaces() function. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18146 (cherry picked from commit a0449f8cf3a53f746c409ce033a6c78065c5edde) Link: https://github.com/openwrt/openwrt/pull/18205 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/board.d/02_network23
1 files 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.@zone[1].network='eth_data'
uci add_list firewall.@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"
;;