2 .
/lib
/functions
/system.sh
4 preinit_set_mac_address
() {
6 extreme-networks
,ws-ap3825i
)
7 ip link
set dev eth0 address $
(mtd_get_mac_ascii cfg1 ethaddr
)
8 ip link
set dev eth1 address $
(mtd_get_mac_ascii cfg1 eth1addr
)
10 watchguard
,firebox-t10
)
11 ip link
set dev eth0 address
"$(mtd_get_mac_text "device_id
" 0x1830)"
12 ip link
set dev eth1 address
"$(mtd_get_mac_text "device_id
" 0x1844)"
13 ip link
set dev eth2 address
"$(mtd_get_mac_text "device_id
" 0x1858)"
18 boot_hook_add preinit_main preinit_set_mac_address