2021-03-01 08:21:59 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
|
|
|
case "$(board_name)" in
|
2024-02-18 21:26:38 +01:00
|
|
|
comtrend,vr-3032u |\
|
|
|
|
smartrg,sr505n)
|
2022-05-18 22:52:06 +02:00
|
|
|
ucidef_set_bridge_device switch
|
2021-03-01 08:21:59 +01:00
|
|
|
ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
|
|
|
|
;;
|
2023-03-22 20:10:01 +01:00
|
|
|
sercomm,h500-s-lowi |\
|
|
|
|
sercomm,h500-s-vfes)
|
|
|
|
ucidef_set_bridge_device switch
|
2023-03-24 10:20:56 +01:00
|
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
|
|
|
ucidef_set_interface "qtn" device "wifi" protocol "static" ipaddr "1.1.1.1" netmask "255.255.255.252"
|
|
|
|
uci add_list firewall.@zone[0].network='qtn'
|
|
|
|
;;
|
2023-06-15 18:16:21 +02:00
|
|
|
comtrend,vg-8050 |\
|
2023-04-09 21:01:11 +02:00
|
|
|
sercomm,shg2500)
|
|
|
|
ucidef_set_bridge_device switch
|
|
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
|
|
|
|
;;
|
2021-03-01 08:21:59 +01:00
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|