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