aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorArınç ÜNAL <arinc.unal@arinc9.com>2023-06-09 11:55:21 +0300
committerChristian Lamparter <chunkeey@gmail.com>2023-06-10 19:06:15 +0200
commitbc7362fbcefaf644d2abb131a4fdd25a51f0b421 (patch)
treedc36645d73d0bd4555e2be8be5470f6270b7d40f /target/linux/ramips
parent7d4868461264eefcb21a6e2d3ff6d02871d9ad5b (diff)
downloadupstream-bc7362fbcefaf644d2abb131a4fdd25a51f0b421.tar.gz
upstream-bc7362fbcefaf644d2abb131a4fdd25a51f0b421.tar.bz2
upstream-bc7362fbcefaf644d2abb131a4fdd25a51f0b421.zip
ramips: fix first boot network configuration for TOZED ZLT S12 PRO
The network configuration at first boot for TOZED ZLT S12 PRO lacks setting up the LAN and WAN network interfaces. Address this. The WAN port is advertised as WAN/LAN on the device and is put on LAN on stock firmware so put it on LAN here as well. Fixes: ce1f9fa625 ("ramips: add support for TOZED ZLT S12 PRO") Reported-by: Andre Cruz <me@1conan.com> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> (cherry picked from commit b61253f92abb4c0d21ec7358a74438eae8d7e6b4)
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/board.d/02_network1
1 files changed, 1 insertions, 0 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 176d15b730..cd746e84ee 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
@@ -109,6 +109,7 @@ ramips_setup_interfaces()
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan sfp"
;;
tozed,zlt-s12-pro)
+ ucidef_set_interface_lan "lan1 lan2 lan3 wan"
ucidef_set_interface "wwan" device "/dev/ttyUSB0" protocol "ncm"
uci add_list firewall.@zone[1].network='wwan'
;;