From 7ae1a26ae93991a25d39217c07f0b6656319a5e1 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Thu, 14 Sep 2023 14:50:07 +0100 Subject: [PATCH] stage4: ignore power key and let raspberrypi-ui-mods handle it --- stage4/07-disable-pwr-button/00-run.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 stage4/07-disable-pwr-button/00-run.sh 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"