diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2023-09-14 14:50:07 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2023-09-27 15:48:41 +0100 |
| commit | 7ae1a26ae93991a25d39217c07f0b6656319a5e1 (patch) | |
| tree | cae18e2d66605a00866cd65ba57c2fa132dfa5b2 | |
| parent | 3a6342b63d21d2a3385d99fa1e8c0fa9ca55b94c (diff) | |
stage4: ignore power key and let raspberrypi-ui-mods handle it
| -rwxr-xr-x | stage4/07-disable-pwr-button/00-run.sh | 3 |
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" |
