diff --git a/recipes-core/systemd/systemd-conf/disable-powerkey.conf b/recipes-core/systemd/systemd-conf/disable-powerkey.conf new file mode 100644 index 00000000..d86b8662 --- /dev/null +++ b/recipes-core/systemd/systemd-conf/disable-powerkey.conf @@ -0,0 +1,2 @@ +[Login] +HandlePowerKey=ignore diff --git a/recipes-core/systemd/systemd-conf_%.bbappend b/recipes-core/systemd/systemd-conf_%.bbappend new file mode 100644 index 00000000..df9c4984 --- /dev/null +++ b/recipes-core/systemd/systemd-conf_%.bbappend @@ -0,0 +1,8 @@ +FILESEXTRAPATHS:prepend:qcom-distro := "${THISDIR}/${BPN}:" + +SRC_URI:append:qcom-distro = " file://disable-powerkey.conf" + +do_install:append:qcom-distro() { + install -Dm 0644 ${UNPACKDIR}/disable-powerkey.conf \ + ${D}${systemd_unitdir}/logind.conf.d/disable-powerkey.conf +}