#!/bin/sh

. /lib/brcm63xx.sh

set_preinit_iface() {
	case "$(brcm63xx_board_name)" in
	agpf-s0 |\
	bcm96348gw |\
	bcm96348gw-10 |\
	bcm96348gw-11 |\
	bcm96358vw |\
	bcm96358vw2 |\
	cpva502p |\
	dg834gt |\
	dmv-s0 |\
	dsl-2650u |\
	dv-201amr |\
	dva-g3810bn |\
	f5d7633 |\
	fast2404 |\
	hg520 |\
	magic |\
	neufbox4 |\
	rg100a |\
	rta1025W |\
	td-w8900gb |\
	usr9108 |\
	v2500v_bb)
		ifname=eth1
		;;
	*)
		ifname=eth0
		;;
	esac
}

boot_hook_add preinit_main set_preinit_iface
