1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Test support for RPI3 B+

This commit is contained in:
Ycarus 2018-04-09 21:14:32 +02:00
parent 90e9938a4a
commit ea98098756
3 changed files with 135 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#!/bin/sh
# Copyright (C) 2014-2016 OpenWrt.org
# Copyright (C) 2017 LEDE project
. /lib/functions/uci-defaults.sh
. /lib/functions.sh
. /lib/functions/system.sh
board_config_update
board=$(board_name)
case "$board" in
raspberrypi,model-b |\
raspberrypi,model-b-plus |\
raspberrypi,model-b-rev2 |\
raspberrypi,2-model-b |\
raspberrypi,3-model-b |\
raspberrypi,3-model-b-plus)
ucidef_set_interface_lan "eth0"
;;
raspberrypi,model-zero-w)
ucidef_set_interface_lan "wlan0"
;;
esac
board_config_flush
exit 0

View file

@ -0,0 +1,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