You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
445 B
Plaintext
23 lines
445 B
Plaintext
9 years ago
|
#!/bin/sh
|
||
8 years ago
|
# Copyright (C) 2015-2016 OpenWrt.org
|
||
7 years ago
|
# Copyright (C) 2017 LEDE project
|
||
9 years ago
|
|
||
|
set_preinit_iface() {
|
||
7 years ago
|
. /lib/functions.sh
|
||
|
|
||
|
case "$(board_name)" in
|
||
7 years ago
|
raspberrypi,2-model-b |\
|
||
5 years ago
|
raspberrypi,2-model-b-rev2 |\
|
||
7 years ago
|
raspberrypi,3-model-b |\
|
||
6 years ago
|
raspberrypi,3-model-b-plus |\
|
||
5 years ago
|
raspberrypi,4-model-b |\
|
||
7 years ago
|
raspberrypi,model-b |\
|
||
|
raspberrypi,model-b-plus |\
|
||
|
raspberrypi,model-b-rev2)
|
||
9 years ago
|
ifname=eth0
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
boot_hook_add preinit_main set_preinit_iface
|