summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-core/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-ic-container/recipes-core/systemd')
-rw-r--r--meta-agl-ic-container/recipes-core/systemd/systemd-netif-config/20-wired.network6
-rw-r--r--meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb19
2 files changed, 25 insertions, 0 deletions
diff --git a/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config/20-wired.network b/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config/20-wired.network
new file mode 100644
index 00000000..abd371bd
--- /dev/null
+++ b/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config/20-wired.network
@@ -0,0 +1,6 @@
+[Match]
+Name=eth0
+
+[Network]
+DHCP=ipv4
+
diff --git a/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb b/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb
new file mode 100644
index 00000000..0714f62b
--- /dev/null
+++ b/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Systemd network interface configuration"
+DESCRIPTION = "Systemd network interface configuration \
+ "
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+SRC_URI = " \
+ file://20-wired.network \
+ "
+
+do_install() {
+ install -D -m0644 ${WORKDIR}/20-wired.network ${D}${sysconfdir}/systemd/network/20-wired.network
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+FILES:${PN} = "\
+ ${sysconfdir}/systemd/network/* \
+"