projects
/
openwrt
/
staging
/
dedeckeh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ipq40xx: add Cisco Meraki MR33 Support
[openwrt/staging/dedeckeh.git]
/
target
/
linux
/
ipq40xx
/
base-files
/
lib
/
preinit
/
05_set_iface_mac_ipq40xx.sh
1
#!/bin/sh
2
3
.
/
lib
/
functions.sh
4
5
preinit_set_mac_address
() {
6
case
$
(
board_name
)
in
7
meraki
,
mr33
)
8
mac_lan
=
$
(
get_mac_binary
"/sys/bus/i2c/devices/0-0050/eeprom"
102
)
9
[
-n
"
$mac_lan
"
] &&
ip link
set
dev eth0 address
"
$mac_lan
"
10
;;
11
esac
12
}
13
14
boot_hook_add preinit_main preinit_set_mac_address