de221ae7ad381141c7f54de16fc82172b48d047c
[openwrt/staging/chunkeey.git] / target / linux / brcm2708 / base-files / lib / preinit / 05_set_preinit_iface_brcm2708
1 #!/bin/sh
2 # Copyright (C) 2015-2016 OpenWrt.org
3 # Copyright (C) 2017 LEDE project
4
5 set_preinit_iface() {
6 . /lib/functions.sh
7
8 case "$(board_name)" in
9 raspberrypi,2-model-b |\
10 raspberrypi,2-model-b-rev2 |\
11 raspberrypi,3-model-b |\
12 raspberrypi,3-model-b-plus |\
13 raspberrypi,4-model-b |\
14 raspberrypi,model-b |\
15 raspberrypi,model-b-plus |\
16 raspberrypi,model-b-rev2)
17 ifname=eth0
18 ;;
19 esac
20 }
21
22 boot_hook_add preinit_main set_preinit_iface