bcm27xx: add new bcm2712 subtarget
[openwrt/staging/svanheule.git] / target / linux / bcm27xx / base-files / etc / board.d / 02_network
1 # Copyright (C) 2014-2016 OpenWrt.org
2 # Copyright (C) 2017 LEDE project
3
4 . /lib/functions/uci-defaults.sh
5 . /lib/functions.sh
6 . /lib/functions/system.sh
7
8 board_config_update
9
10 board=$(board_name)
11
12 case "$board" in
13 raspberrypi,2-model-b |\
14 raspberrypi,2-model-b-rev2 |\
15 raspberrypi,3-model-b |\
16 raspberrypi,3-model-b-plus |\
17 raspberrypi,400 |\
18 raspberrypi,4-compute-module |\
19 raspberrypi,4-model-b |\
20 raspberrypi,5-model-b |\
21 raspberrypi,model-b |\
22 raspberrypi,model-b-plus |\
23 raspberrypi,model-b-rev2)
24 ucidef_set_interface_lan "eth0"
25 ;;
26
27 raspberrypi,model-zero-2 |\
28 raspberrypi,model-zero-w)
29 ucidef_set_interface_lan "wlan0"
30 ;;
31 esac
32
33 board_config_flush
34
35 exit 0