systemd-conf: set actions to trigger on KEY_POWER events
This commit adds a custom config file to handle the KEY_POWER events on systemd. https://onedigi.atlassian.net/browse/DEL-8207 Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
199ab73078
commit
0c214a3980
|
|
@ -0,0 +1,3 @@
|
|||
[Login]
|
||||
HandlePowerKey=suspend
|
||||
HandlePowerKeyLongPress=poweroff
|
||||
|
|
@ -6,6 +6,14 @@ SRC_URI:append = " \
|
|||
file://system.conf-digi \
|
||||
"
|
||||
|
||||
SRC_URI:append:ccmp1 = " \
|
||||
file://logind.conf-digi \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
install -D -m0644 ${WORKDIR}/system.conf-digi ${D}${systemd_unitdir}/system.conf.d/01-${PN}.conf
|
||||
}
|
||||
|
||||
do_install:append:ccmp1() {
|
||||
install -D -m0644 ${WORKDIR}/logind.conf-digi ${D}${systemd_unitdir}/logind.conf.d/01-${PN}.conf
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue