projects
/
openwrt
/
staging
/
chunkeey.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
treewide: use the generic board_name function
[openwrt/staging/chunkeey.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
/
function
s
/
uci-defaults.sh
6
.
/
lib
/
functions.sh
7
.
/
lib
/
function
s
/
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