projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
brcm2708: add device detection and use it for network, leds and preinit
[openwrt/openwrt.git]
/
target
/
linux
/
brcm2708
/
base-files
/
lib
/
preinit
/
05_set_preinit_iface_brcm2708
1
#!/bin/sh
2
#
3
# Copyright (C) 2015 OpenWrt.org
4
#
5
6
.
/
lib
/
brcm2708.sh
7
8
set_preinit_iface
() {
9
case
"$(brcm2708_board_name)"
in
10
rpi-b |\
11
rpi-b-plus |\
12
rpi-2-b
)
13
ifname
=
eth0
14
;;
15
esac
16
}
17
18
boot_hook_add preinit_main set_preinit_iface