brcm2708: convert to dt-based board-detection
[openwrt/staging/lynxis.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 ucidef_set_interface_lan "eth0"
20 ;;
21
22 raspberrypi,model-zero-w)
23 ucidef_set_interface_lan "wlan0"
24 ;;
25 esac
26
27 board_config_flush
28
29 exit 0