From fc4c2170321d412357501b14431840a74791b152 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 15 May 2014 14:54:17 -0300 Subject: Adding back hibernation support --- manifests/base/laptop.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'manifests/base/laptop.pp') diff --git a/manifests/base/laptop.pp b/manifests/base/laptop.pp index 4e07e80..3074787 100644 --- a/manifests/base/laptop.pp +++ b/manifests/base/laptop.pp @@ -31,6 +31,18 @@ class nodo::base::laptop inherits nodo::base::personal { }, } + file { "/etc/uswsusp.conf": + owner => "root", + group => "root", + mode => 0644, + source => 'puppet:///modules/nodo/etc/uswsusp.conf', + 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