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
344 B
Bash
15 lines
344 B
Bash
. /lib/functions.sh
|
|
. /lib/functions/system.sh
|
|
|
|
preinit_set_mac_address() {
|
|
case $(board_name) in
|
|
zyxel,nbg6716)
|
|
ethaddr=$(mtd_get_mac_ascii u-boot-env ethaddr)
|
|
ip link set dev eth0 address $(macaddr_add $ethaddr 2)
|
|
ip link set dev eth1 address $(macaddr_add $ethaddr 3)
|
|
;;
|
|
esac
|
|
}
|
|
|
|
boot_hook_add preinit_main preinit_set_mac_address
|