2 .
/lib
/functions
/system.sh
4 preinit_set_mac_address
() {
7 ethaddr
=$
(mtd_get_mac_ascii u-boot-env ethaddr
)
8 ip link
set dev eth0 address $
(macaddr_add
$ethaddr 2)
9 ip link
set dev eth1 address $
(macaddr_add
$ethaddr 3)
14 boot_hook_add preinit_main preinit_set_mac_address