Add a way to disable power/suspend keys on keyboards

This commit is contained in:
KemoNine 2020-09-01 18:55:54 -04:00
parent 77a0567b94
commit 7419bf8aeb

View file

@ -58,6 +58,15 @@ sudo -sHu root /bin/bash
# Cleanup timezone
dpkg-reconfigure tzdata
# Disable power/hibernate/sleep keys
mkdir /etc/systemd/logind.conf.d
cat > /etc/systemd/logind.conf.d/ignored_keys.conf <<EOF
[Login]
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
EOF
# Full system update
apt update && apt upgrade
systemctl reboot