aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx/base-files/lib/preinit/10_fix_eth_mac.sh
blob: d94eba688c8ed73c0f710936a3df9702939f5398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
. /lib/functions.sh

preinit_set_mac_address() {
	case $(board_name) in
	extreme-networks,ws-ap3825i)
		ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
		ip link set dev eth1 address $(mtd_get_mac_ascii cfg1 eth1addr)
		;;
	esac
}

boot_hook_add preinit_main preinit_set_mac_address