#!/bin/sh
# Copyright (C) 2015-2016 OpenWrt.org

. /lib/brcm2708.sh

set_preinit_iface() {
	case "$(brcm2708_board_name)" in
	rpi-b |\
	rpi-b-plus |\
	rpi-2-b |\
	rpi-3-b)
		ifname=eth0
		;;
	esac
}

boot_hook_add preinit_main set_preinit_iface
