OSDN Git Service

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