1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-17 04:33:57 +02:00
openwrt/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708
Mathias Kresin f12a32630f treewide: use the generic board_name function
Use the generic function instead ot the target specific ones.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-07-15 23:13:34 +02:00

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