665504a3fc5eeadf61b2004ff364507f817a68e3
[openwrt/openwrt.git] / target / linux / bcm27xx / 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,2-model-b-rev2 |\
19 raspberrypi,3-model-b |\
20 raspberrypi,3-model-b-plus |\
21 raspberrypi,400 |\
22 raspberrypi,4-compute-module |\
23 raspberrypi,4-model-b)
24 ucidef_set_interface_lan "eth0"
25 ;;
26
27 raspberrypi,model-zero-w)
28 ucidef_set_interface_lan "wlan0"
29 ;;
30 esac
31
32 board_config_flush
33
34 exit 0