4 .
/lib
/functions
/system.sh
6 preinit_set_mac_address
() {
9 mac_wan
=$
(mtd_get_mac_binary hw-info
0)
10 [ -n "$mac_wan" ] && ifconfig eth0 hw ether
"$mac_wan"
11 mac_lan
=$
(macaddr_add $
(mtd_get_mac_binary hw-info
0) +1)
12 [ -n "$mac_lan" ] && ifconfig eth1 hw ether
"$mac_lan"
17 boot_hook_add preinit_main preinit_set_mac_address