aboutsummaryrefslogtreecommitdiff
path: root/meta-yerba/recipes-core/runit/runit-dhcpcd.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-yerba/recipes-core/runit/runit-dhcpcd.bb')
-rw-r--r--meta-yerba/recipes-core/runit/runit-dhcpcd.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-yerba/recipes-core/runit/runit-dhcpcd.bb b/meta-yerba/recipes-core/runit/runit-dhcpcd.bb
new file mode 100644
index 0000000..d28e747
--- /dev/null
+++ b/meta-yerba/recipes-core/runit/runit-dhcpcd.bb
@@ -0,0 +1,13 @@
+SUMMARY = "dhcpcd service for runit"
+DESCRIPTION = "Provides a dhcpcd service for runit"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+SRC_URI = "file://run"
+
+RDEPENDS:${PN} = "runit"
+do_install() {
+ install -d ${D}/etc/runit/sv/dhcpcd ${D}/etc/service
+ install -m 0755 ${WORKDIR}/run ${D}/etc/runit/sv/dhcpcd/run
+ ln -sf /etc/runit/sv/dhcpcd ${D}/etc/service/dhcpcd
+}