mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-17 04:33:57 +02:00
f12a32630f
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
19 lines
272 B
Bash
19 lines
272 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
|
# Copyright (C) 2017 LEDE project
|
|
|
|
set_preinit_iface() {
|
|
. /lib/functions.sh
|
|
|
|
case "$(board_name)" in
|
|
rpi-2-b |\
|
|
rpi-3-b |\
|
|
rpi-b |\
|
|
rpi-b-plus)
|
|
ifname=eth0
|
|
;;
|
|
esac
|
|
}
|
|
|
|
boot_hook_add preinit_main set_preinit_iface
|