summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2023-09-14 14:50:07 +0100
committerSerge Schneider <serge@raspberrypi.com>2023-09-27 15:48:41 +0100
commit7ae1a26ae93991a25d39217c07f0b6656319a5e1 (patch)
treecae18e2d66605a00866cd65ba57c2fa132dfa5b2
parent3a6342b63d21d2a3385d99fa1e8c0fa9ca55b94c (diff)
stage4: ignore power key and let raspberrypi-ui-mods handle it
-rwxr-xr-xstage4/07-disable-pwr-button/00-run.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/stage4/07-disable-pwr-button/00-run.sh b/stage4/07-disable-pwr-button/00-run.sh
new file mode 100755
index 0000000..44646bd
--- /dev/null
+++ b/stage4/07-disable-pwr-button/00-run.sh
@@ -0,0 +1,3 @@
+#!/bin/bash -e
+
+sed -i 's/^.*HandlePowerKey=.*$/HandlePowerKey=ignore/' "${ROOTFS_DIR}/etc/systemd/logind.conf"