d94eba688c8ed73c0f710936a3df9702939f5398
[openwrt/openwrt.git] / target / linux / mpc85xx / base-files / lib / preinit / 10_fix_eth_mac.sh
1 . /lib/functions.sh
2
3 preinit_set_mac_address() {
4 case $(board_name) in
5 extreme-networks,ws-ap3825i)
6 ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
7 ip link set dev eth1 address $(mtd_get_mac_ascii cfg1 eth1addr)
8 ;;
9 esac
10 }
11
12 boot_hook_add preinit_main preinit_set_mac_address