diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-08-09 11:26:20 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-08-09 11:26:20 -0300 |
commit | 314ce8d74d8b0e119550f0b0783eeb2f80355849 (patch) | |
tree | 21475f369a4141cc94ed50217fd0cb373c6fd620 | |
parent | 278d381fd0a903bd7c754d296d63491959fdcbdf (diff) | |
download | puppet-nodo-314ce8d74d8b0e119550f0b0783eeb2f80355849.tar.gz puppet-nodo-314ce8d74d8b0e119550f0b0783eeb2f80355849.tar.bz2 |
Default pm-utils sleep module
-rw-r--r-- | manifests/base/laptop.pp | 12 |
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': |