From de1007b690bba70af2c63c47022584c696a9992a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 28 Nov 2021 20:52:38 -0800 Subject: [PATCH] weston-init: Add --continue-without-input option to weston launching with --continue-without-input helps starting weston without keyboard/mouse Signed-off-by: Khem Raj --- recipes-graphics/wayland/weston-init.bbappend | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes-graphics/wayland/weston-init.bbappend diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend new file mode 100644 index 0000000..b6d6f2e --- /dev/null +++ b/recipes-graphics/wayland/weston-init.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +do_install:append:rpi() { + if [ -e ${D}/${sysconfdir}/init.d/weston ]; then + sed -i 's#weston-start --#weston-start -- --continue-without-input#' ${D}/${sysconfdir}/init.d/weston + fi + if [ -e ${D}${systemd_system_unitdir}/weston.service ]; then + sed -i 's#ExecStart=/usr/bin/weston#ExecStart=/usr/bin/weston --continue-without-input#' ${D}${systemd_system_unitdir}/weston.service + fi +}