set_preinit_iface() {
	. /lib/functions.sh

	case $(board_name) in
	aruba,ap-303| \
	asus,rt-ac58u| \
	avm,fritzbox-4040| \
	ezviz,cs-w3-wd1200g-eup| \
	glinet,gl-b1300| \
	linksys,ea8300| \
	linksys,mr8300| \
	meraki,mr33| \
	zyxel,nbg6617)
		ifname=eth0
		;;
	devolo,magic-2-wifi-next)
		ifname=eth1
		;;
	esac
}

boot_hook_add preinit_main set_preinit_iface
