aboutsummaryrefslogtreecommitdiff
path: root/meta-yerba/recipes-core/runit/runit-serialgetty.bb
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-06-14 18:35:37 +1200
committerArslaan Pathan <[email protected]>2026-06-14 18:35:37 +1200
commit76f2d2fad1d196f639a2f5c8b9f14e1b8f3c339a (patch)
treee9945e88a90c0642194f03bd3607444c9fc2d700 /meta-yerba/recipes-core/runit/runit-serialgetty.bb
parent4cc62efa47100b7f6a0e5cb15ccf4b0f468368a6 (diff)
downloadyerbalinux-76f2d2fad1d196f639a2f5c8b9f14e1b8f3c339a.tar.xz
yerbalinux-76f2d2fad1d196f639a2f5c8b9f14e1b8f3c339a.zip
Runit
Diffstat (limited to 'meta-yerba/recipes-core/runit/runit-serialgetty.bb')
-rw-r--r--meta-yerba/recipes-core/runit/runit-serialgetty.bb17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-yerba/recipes-core/runit/runit-serialgetty.bb b/meta-yerba/recipes-core/runit/runit-serialgetty.bb
new file mode 100644
index 0000000..5328f68
--- /dev/null
+++ b/meta-yerba/recipes-core/runit/runit-serialgetty.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Serial getty service for runit"
+DESCRIPTION = "Provides a getty service on the serial console for runit"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+RDEPENDS:${PN} = "runit"
+
+do_install() {
+ install -d ${D}/etc/service/serial-getty
+ cat > ${D}/etc/service/serial-getty/run << EOF
+#!/bin/sh
+exec /sbin/getty -L 115200 ttyS0 vt100
+EOF
+ chmod 0755 ${D}/etc/service/serial-getty/run
+}
+
+FILES:${PN} = "/etc/service/serial-getty"