You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
388 B
20 lines
388 B
#!/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
|
|
|