aboutsummaryrefslogtreecommitdiff
path: root/meta-yerba/recipes-core/runit/runit-serialgetty.bb
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-06-18 12:59:37 +1200
committerArslaan Pathan <[email protected]>2026-06-18 12:59:37 +1200
commita7321eb6608a6592da4292260e290b43da6838a7 (patch)
treeaf2e61ce3de1c2efd7657555b83692eba41c69d4 /meta-yerba/recipes-core/runit/runit-serialgetty.bb
parent029944432c9a49f645a54c073a24580b8b89a1a6 (diff)
downloadyerbalinux-a7321eb6608a6592da4292260e290b43da6838a7.tar.xz
yerbalinux-a7321eb6608a6592da4292260e290b43da6838a7.zip
Fix up the serialgetty recipe to use proper file structure, and add a dhcpcd recipe
Diffstat (limited to 'meta-yerba/recipes-core/runit/runit-serialgetty.bb')
-rw-r--r--meta-yerba/recipes-core/runit/runit-serialgetty.bb11
1 files changed, 5 insertions, 6 deletions
diff --git a/meta-yerba/recipes-core/runit/runit-serialgetty.bb b/meta-yerba/recipes-core/runit/runit-serialgetty.bb
index 5328f68..47c0aa3 100644
--- a/meta-yerba/recipes-core/runit/runit-serialgetty.bb
+++ b/meta-yerba/recipes-core/runit/runit-serialgetty.bb
@@ -3,15 +3,14 @@ DESCRIPTION = "Provides a getty service on the serial console 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/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
+ install -d ${D}/etc/runit/sv/serial-getty ${D}/etc/service/
+ install -m 0755 ${WORKDIR}/run ${D}/etc/runit/sv/serial-getty/run
+ ln -sf /etc/runit/sv/serial-getty ${D}/etc/service/serial-getty
}
FILES:${PN} = "/etc/service/serial-getty"