You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
294 B
Bash
15 lines
294 B
Bash
6 years ago
|
#!/bin/sh
|
||
|
|
||
|
. /lib/functions.sh
|
||
|
|
||
|
preinit_set_mac_address() {
|
||
|
case $(board_name) in
|
||
|
meraki,mr33)
|
||
|
mac_lan=$(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 102)
|
||
|
[ -n "$mac_lan" ] && ip link set dev eth0 address "$mac_lan"
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
boot_hook_add preinit_main preinit_set_mac_address
|