36c8c5df1afaaaa8675a7f152970bc5f923dacec
[openwrt/staging/mkresin.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,2-model-b-rev2 |\
19 raspberrypi,3-model-b |\
20 raspberrypi,3-model-b-plus |\
21 raspberrypi,4-model-b)
22 ucidef_set_interface_lan "eth0"
23 ;;
24
25 raspberrypi,model-zero-w)
26 ucidef_set_interface_lan "wlan0"
27 ;;
28 esac
29
30 board_config_flush
31
32 exit 0