3 preinit_set_mac_address
() {
6 lan_mac
=$
(mtd_get_mac_ascii hwconfig HW.LAN.MAC.Address
)
7 wan_mac
=$
(mtd_get_mac_ascii hwconfig HW.WAN.MAC.Address
)
8 ip link
set dev eth0 address
"${lan_mac}"
9 ip link
set dev eth1 address
"${wan_mac}"
14 boot_hook_add preinit_main preinit_set_mac_address