cv18x0: add new target for Sophgo CV18x0 RISC-V SoCs
[openwrt/staging/wigyori.git] / target / linux / cv18x0 / base-files / etc / board.d / 02_network
diff --git a/target/linux/cv18x0/base-files/etc/board.d/02_network b/target/linux/cv18x0/base-files/etc/board.d/02_network
new file mode 100644 (file)
index 0000000..ca9f7f2
--- /dev/null
@@ -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