aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base/laptop.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/base/laptop.pp b/manifests/base/laptop.pp
index c8778a0..5fec946 100644
--- a/manifests/base/laptop.pp
+++ b/manifests/base/laptop.pp
@@ -43,6 +43,18 @@ class nodo::base::laptop inherits nodo::base::personal {
},
}
+ file { "/etc/pm/config.d/00sleep_module":
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ content => "SLEEP_MODULE=\"uswsusp\"\n",
+ require => Package['uswsusp'],
+ ensure => $hibernate ? {
+ false => absent,
+ default => present,
+ },
+ }
+
# Avoid this annoying warning
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673818
file { '/etc/laptop-mode/conf.d/board-specific':