From f55276477c27770af28e53bb8d4c8f9447993f05 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 22 Sep 2011 10:39:11 -0300 Subject: Adding hibernation support for laptops --- manifests/subsystems/utils/laptop.pp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'manifests/subsystems/utils') diff --git a/manifests/subsystems/utils/laptop.pp b/manifests/subsystems/utils/laptop.pp index e1022a5..5ae29d6 100644 --- a/manifests/subsystems/utils/laptop.pp +++ b/manifests/subsystems/utils/laptop.pp @@ -16,8 +16,13 @@ class utils::laptop { } } - # Currently no hibernation - package { 'uswsusp': - ensure => absent, + # Hibernation on lenny + if $lsbdistcodename == 'lenny' { + package { 'uswsusp': + ensure => $hibernate ? { + false => absent, + default => present, + }, + } } } -- cgit v1.2.3