treewide: use the generic board_name function
[openwrt/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 rpi-2-b |\
15 rpi-3-b |\
16 rpi-b |\
17 rpi-b-plus)
18 ucidef_set_interface_lan "eth0"
19 ;;
20 rpi-zero-w)
21 ucidef_set_interface_lan "wlan0"
22 ;;
23 esac
24
25 board_config_flush
26
27 exit 0