aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic/base-files/lib/preinit/10_fix_eth_mac.sh
blob: a0fb9fc7174c6f44ccc733bbf995cd941816b8ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

. /lib/functions.sh

preinit_set_mac_address() {
	case $(board_name) in
	siemens,ws-ap3610)
		ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
		;;
	esac
}

boot_hook_add preinit_main preinit_set_mac_address