bmips: add support for Comtrend VG-8050
[openwrt/openwrt.git] / target / linux / bmips / bcm63268 / base-files / etc / board.d / 02_network
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 . /lib/functions/uci-defaults.sh
4
5 board_config_update
6
7 case "$(board_name)" in
8 comtrend,vr-3032u)
9 ucidef_set_bridge_device switch
10 ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
11 ;;
12 sercomm,h500-s-lowi |\
13 sercomm,h500-s-vfes)
14 ucidef_set_bridge_device switch
15 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
16 ucidef_set_interface "qtn" device "wifi" protocol "static" ipaddr "1.1.1.1" netmask "255.255.255.252"
17 uci add_list firewall.@zone[0].network='qtn'
18 ;;
19 comtrend,vg-8050 |\
20 sercomm,shg2500)
21 ucidef_set_bridge_device switch
22 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
23 ;;
24 esac
25
26 board_config_flush
27
28 exit 0