[arch-releng] [RFC] [PATCH] [configs/releng] Ignore Lid/Sus/Hib switch/keys by logind

Gerardo Exequiel Pozzi vmlinuz386 at gmail.com
Wed Aug 12 00:46:23 UTC 2015


Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at gmail.com>
---
 configs/releng/airootfs/root/customize_airootfs.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configs/releng/airootfs/root/customize_airootfs.sh b/configs/releng/airootfs/root/customize_airootfs.sh
index ead9b70..4b595d0 100755
--- a/configs/releng/airootfs/root/customize_airootfs.sh
+++ b/configs/releng/airootfs/root/customize_airootfs.sh
@@ -15,5 +15,9 @@ sed -i 's/#\(PermitRootLogin \)no/\1yes/' /etc/ssh/sshd_config
 sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
 sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
 
+sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
+sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
+sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf
+
 systemctl enable pacman-init.service choose-mirror.service
 systemctl set-default multi-user.target
-- 
2.5.0


More information about the arch-releng mailing list