brcm2708: Add support for raspberry pi 3 b+.
[oweals/openwrt.git] / target / linux / brcm2708 / base-files / etc / board.d / 02_network
1 #!/bin/sh
2 # Copyright (C) 2014-2016 OpenWrt.org
3 # Copyright (C) 2017 LEDE project
4
5 . /lib/functions/uci-defaults.sh
6 . /lib/functions.sh
7 . /lib/functions/system.sh
8
9 board_config_update
10
11 board=$(board_name)
12
13 case "$board" in
14 raspberrypi,model-b |\
15 raspberrypi,model-b-plus |\
16 raspberrypi,model-b-rev2 |\
17 raspberrypi,2-model-b |\
18 raspberrypi,3-model-b |\
19 raspberrypi,3-model-b-plus)
20         ucidef_set_interface_lan "eth0"
21         ;;
22
23 raspberrypi,model-zero-w)
24         ucidef_set_interface_lan "wlan0"
25         ;;
26 esac
27
28 board_config_flush
29
30 exit 0