1 .
/lib
/functions
/system.sh
3 preinit_set_mac_address
() {
8 ip link
set dev eth0 address $
(fritz_tffs
-n maca
-i $
(find_mtd_part
"tffs (1)"))
12 ip link
set dev eth0 address $
(mtd_get_mac_ascii bdcfg
"lanmac")
13 ip link
set dev eth1 address $
(mtd_get_mac_ascii bdcfg
"wanmac")
17 ip link
set dev eth0 address $
(mtd_get_mac_ascii u-boot-env ethaddr
)
20 ip link
set dev eth0 address $
(mtd_get_mac_ascii u-boot-env0 ethaddr
)
22 extreme-networks
,ws-ap3805i|\
24 ip link
set dev eth0 address $
(mtd_get_mac_ascii cfg1 ethaddr
)
27 ip link
set dev eth0 address $
(mtd_get_mac_text u-boot
0x3ff80 12)
30 base_mac
=$
(mtd_get_mac_encrypted_deco $
(find_mtd_part config
))
31 ip link
set dev eth0 address
$base_mac
34 ethaddr
=$
(mtd_get_mac_ascii u-boot-env ethaddr
)
35 ip link
set dev eth0 address $
(macaddr_add
$ethaddr 2)
36 ip link
set dev eth1 address $
(macaddr_add
$ethaddr 3)
41 boot_hook_add preinit_main preinit_set_mac_address