Add a way to disable power/suspend keys on keyboards
This commit is contained in:
parent
77a0567b94
commit
7419bf8aeb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue