aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sifiveu/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/sifiveu/base-files/etc/board.d/02_network')
-rw-r--r--target/linux/sifiveu/base-files/etc/board.d/02_network18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/sifiveu/base-files/etc/board.d/02_network b/target/linux/sifiveu/base-files/etc/board.d/02_network
new file mode 100644
index 0000000000..ca9f7f2008
--- /dev/null
+++ b/target/linux/sifiveu/base-files/etc/board.d/02_network
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Copyright (C) 2022 OpenWrt.org
+#
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+*)
+ ucidef_set_interface_lan 'eth0'
+ ;;
+esac
+
+board_config_flush
+
+exit 0