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

set_preinit_iface() {
	. /lib/functions.sh

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

boot_hook_add preinit_main set_preinit_iface
