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 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
96c6608346
commit
a0449f8cf3
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
. /lib/functions/uci-defaults.sh
|
. /lib/functions/uci-defaults.sh
|
||||||
. /lib/functions/system.sh
|
. /lib/functions/system.sh
|
||||||
@ -23,6 +22,7 @@ ramips_setup_interfaces()
|
|||||||
mercusys,mr70x-v1|\
|
mercusys,mr70x-v1|\
|
||||||
netgear,wax202|\
|
netgear,wax202|\
|
||||||
sim,simax1800t|\
|
sim,simax1800t|\
|
||||||
|
tplink,mr600-v2-eu|\
|
||||||
xiaomi,mi-router-3-pro|\
|
xiaomi,mi-router-3-pro|\
|
||||||
xiaomi,mi-router-ac2100|\
|
xiaomi,mi-router-ac2100|\
|
||||||
xiaomi,mi-router-cr6606|\
|
xiaomi,mi-router-cr6606|\
|
||||||
@ -68,12 +68,18 @@ ramips_setup_interfaces()
|
|||||||
ucidef_set_interface_lan "lan"
|
ucidef_set_interface_lan "lan"
|
||||||
;;
|
;;
|
||||||
asiarf,ap7621-001|\
|
asiarf,ap7621-001|\
|
||||||
|
comfast,cf-e390ax|\
|
||||||
|
comfast,cf-ew72-v2|\
|
||||||
|
cudy,m1800|\
|
||||||
dna,valokuitu-plus-ex400|\
|
dna,valokuitu-plus-ex400|\
|
||||||
humax,e10|\
|
humax,e10|\
|
||||||
keenetic,kn-3510|\
|
keenetic,kn-3510|\
|
||||||
|
meig,slt866|\
|
||||||
openfi,5pro|\
|
openfi,5pro|\
|
||||||
wavlink,ws-wn572hp3-4g|\
|
wavlink,ws-wn572hp3-4g|\
|
||||||
winstars,ws-wn583a6)
|
winstars,ws-wn583a6|\
|
||||||
|
yuncore,ax820|\
|
||||||
|
zyxel,nr7101)
|
||||||
ucidef_set_interfaces_lan_wan "lan" "wan"
|
ucidef_set_interfaces_lan_wan "lan" "wan"
|
||||||
;;
|
;;
|
||||||
asiarf,ap7621-nv1|\
|
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_data'
|
||||||
uci add_list firewall.@zone[1].network='eth_om'
|
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)
|
dlink,covr-x1860-a1)
|
||||||
ucidef_set_interfaces_lan_wan "ethernet" "internet"
|
ucidef_set_interfaces_lan_wan "ethernet" "internet"
|
||||||
;;
|
;;
|
||||||
@ -155,9 +156,6 @@ ramips_setup_interfaces()
|
|||||||
tplink,tl-wpa8631p-v3)
|
tplink,tl-wpa8631p-v3)
|
||||||
ucidef_set_interface_lan "lan1 lan2 lan3 plc0"
|
ucidef_set_interface_lan "lan1 lan2 lan3 plc0"
|
||||||
;;
|
;;
|
||||||
tplink,mr600-v2-eu)
|
|
||||||
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
|
||||||
;;
|
|
||||||
ubnt,edgerouter-x)
|
ubnt,edgerouter-x)
|
||||||
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0"
|
ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0"
|
||||||
;;
|
;;
|
||||||
@ -178,11 +176,6 @@ ramips_setup_interfaces()
|
|||||||
ruijie,rg-ew1200g-pro-v1.1)
|
ruijie,rg-ew1200g-pro-v1.1)
|
||||||
ucidef_set_interfaces_lan_wan "lan3 lan2 lan1" "wan"
|
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"
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user