projects
/
lede-git
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
apm821xx: Add support for the Cisco Meraki MX60/MX60W
[lede-git/.git]
/
target
/
linux
/
apm821xx
/
base-files
/
lib
/
preinit
/
05_set_iface_mac_apm821xx
1
#!/bin/sh
2
3
. /lib/apm821xx.sh
4
5
preinit_set_mac_address() {
6
case $(apm821xx_board_name) in
7
mr24|\
8
mx60)
9
mac_lan=$(mtd_get_mac_binary_ubi board-config 102)
10
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
11
;;
12
esac
13
}
14
15
boot_hook_add preinit_main preinit_set_mac_address