2 # Copyright (C) 2014 OpenWrt.org
5 preinit_set_mac_address() {
11 case $(mvebu_board_name) in
12 armada-xp-linksys-mamba)
13 mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
14 mac_wan=$(macaddr_setbit_la "$mac")
15 ifconfig eth0 hw ether $mac 2>/dev/null
16 ifconfig eth1 hw ether $mac_wan 2>/dev/null
21 boot_hook_add preinit_main preinit_set_mac_address