From e12e68dba6ebeb25ce967d9715bb5d5f49486622 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Tue, 13 May 2014 16:41:40 +0200 Subject: [PATCH] systemd: disable getty on ttyS0 for sysmobts-2050 Fixes: SYS#235 --- recipes-fixes/systemd/systemd_sysmocom.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/recipes-fixes/systemd/systemd_sysmocom.inc b/recipes-fixes/systemd/systemd_sysmocom.inc index e937eb1..131c68e 100644 --- a/recipes-fixes/systemd/systemd_sysmocom.inc +++ b/recipes-fixes/systemd/systemd_sysmocom.inc @@ -42,6 +42,20 @@ pkg_postinst_${PN}_append () { systemctl ${OPTS} mask systemd-journal-flush.service } +pkg_postinst_${PN}_append_sysmobts-2050 () { + cd $D${sysconfdir}/init.d + + echo "Disabling ttyS0 for sysmobts-2050:" + + OPTS="" + + if [ -n "$D" ]; then + OPTS="--root=$D" + fi + + systemctl ${OPTS} mask serial-getty@ttyS0.service +} + do_install_append() { install -m 0644 ${WORKDIR}/journald.conf ${D}${sysconfdir}/systemd/