OSDN Git Service

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