浏览代码

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 <[email protected]>
Signed-off-by: Arınç ÜNAL <[email protected]>
Arınç ÜNAL 2 年之前
父节点
当前提交
b61253f92a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      target/linux/ramips/mt7621/base-files/etc/board.d/02_network

+ 1 - 0
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"
 		ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan sfp"
 		;;
 		;;
 	tozed,zlt-s12-pro)
 	tozed,zlt-s12-pro)
+		ucidef_set_interface_lan "lan1 lan2 lan3 wan"
 		ucidef_set_interface "wwan" device "/dev/ttyUSB0" protocol "ncm"
 		ucidef_set_interface "wwan" device "/dev/ttyUSB0" protocol "ncm"
 		uci add_list firewall.@zone[1].network='wwan'
 		uci add_list firewall.@zone[1].network='wwan'
 		;;
 		;;