blob: 3a5c198fc67611cb613ae690662d907023a154a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# Copyright (C) 2015-2016 OpenWrt.org
# Copyright (C) 2017 LEDE project
set_preinit_iface() {
. /lib/functions.sh
case "$(board_name)" in
raspberrypi,2-model-b |\
raspberrypi,3-model-b |\
raspberrypi,3-model-b-plus |\
raspberrypi,model-b |\
raspberrypi,model-b-plus |\
raspberrypi,model-b-rev2)
ifname=eth0
;;
esac
}
boot_hook_add preinit_main set_preinit_iface
|