aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/armvirt/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
authorMathew McBride <matt@traverse.com.au>2022-01-19 02:25:23 +0000
committerPetr Štetiar <ynezz@true.cz>2023-06-13 14:12:23 +0200
commit7c223a881f93cb5e8e68fe8b92693b48d4609002 (patch)
treecede82ccb1ac128576c19bd6a771c0e1a07feefa /target/linux/armvirt/base-files/etc/board.d/02_network
parent1e7fa539ae6e94bfdb5d9e503f0c103e15b408a1 (diff)
downloadupstream-7c223a881f93cb5e8e68fe8b92693b48d4609002.tar.gz
upstream-7c223a881f93cb5e8e68fe8b92693b48d4609002.tar.bz2
upstream-7c223a881f93cb5e8e68fe8b92693b48d4609002.zip
armvirt: add EFI support
EFI booting is used on newer machines compatible with the Arm SystemReady specifications. This commit restructures armvirt into a more 'generic' target similar to x86. See https://github.com/openwrt/openwrt/pull/4956 for a history of this port. Signed-off-by: Mathew McBride <matt@traverse.com.au> (23.05 version of e0f06ddc23b2503a1791ae7e97b02e2647e8a70d)
Diffstat (limited to 'target/linux/armvirt/base-files/etc/board.d/02_network')
-rw-r--r--target/linux/armvirt/base-files/etc/board.d/02_network18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/armvirt/base-files/etc/board.d/02_network b/target/linux/armvirt/base-files/etc/board.d/02_network
new file mode 100644
index 0000000000..f58de1c27d
--- /dev/null
+++ b/target/linux/armvirt/base-files/etc/board.d/02_network
@@ -0,0 +1,18 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+. /lib/functions/system.sh
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+ traverse,ten64)
+ ucidef_set_interface_lan "eth0 eth1 eth2 eth3"
+ ucidef_set_interface_wan "eth6"
+ ;;
+esac
+
+board_config_flush
+
+exit 0