diff options
-rw-r--r-- | hosts/alsvid3/postinst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst index 65eb80f..e16ec62 100644 --- a/hosts/alsvid3/postinst +++ b/hosts/alsvid3/postinst @@ -27,6 +27,13 @@ cat >"${target}/boot/grub/libreboot_grub.cfg" <<-EOF boot EOF +# Don't suspend on lid close. +cp -p "${target}/etc/elogind/logind.conf" \ + "${target}/etc/elogind/logind.conf.dist" +sed 's/^.*\(HandleLidSwitch.*\)=.*$/\1=ignore/' \ + "${target}/etc/elogind/logind.conf.dist" \ + >"${target}/etc/elogind/logind.conf" + # Turn on numlock on the VTs. cat >"${target}/etc/rc.local" <<'EOF' #!/bin/sh -e |