You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
preinit_set_mac_address() {
|
|
. /lib/functions.sh
|
|
|
|
case $(board_name) in
|
|
meraki,mr24|\
|
|
meraki,mx60)
|
|
mac_lan=$(mtd_get_mac_binary_ubi board-config 102)
|
|
[ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
boot_hook_add preinit_main preinit_set_mac_address
|
|
|