From 314ce8d74d8b0e119550f0b0783eeb2f80355849 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 9 Aug 2014 11:26:20 -0300 Subject: Default pm-utils sleep module --- manifests/base/laptop.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'manifests') 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': -- cgit v1.2.3