[Lunar-commits] <moonbase> laptop-mode-tools: fix the udev 139 compatibility.

Florin Braescu florin at lunar-linux.org
Wed Mar 11 09:29:15 CET 2009


commit 82334baf7f89aed9e779ebb9ce59e487c9d970f1
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Wed Mar 11 10:29:15 2009 +0200

    laptop-mode-tools: fix the udev 139 compatibility.
    
    Thanks to Paul Bredbury (brebs) for the patch.
---
 utils/laptop-mode-tools/BUILD   |   10 +++++++---
 utils/laptop-mode-tools/DETAILS |    6 +++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/utils/laptop-mode-tools/BUILD b/utils/laptop-mode-tools/BUILD
index 5157e67..03b8f0e 100644
--- a/utils/laptop-mode-tools/BUILD
+++ b/utils/laptop-mode-tools/BUILD
@@ -1,14 +1,18 @@
 (
 
+  # For compatibility with udev-139
+  sedit "s:udevinfo -q:udevadm info -q:" usr/share/laptop-mode-tools/modules/hdparm  &&
+  sedit "s:udevinfo -V | awk '{ print \$3; }':udevadm info -V:" usr/share/laptop-mode-tools/modules/hdparm  &&
+
   prepare_install  &&
-  
+
   cp -f $SCRIPT_DIRECTORY/init.d/laptop-mode  $SOURCE_DIRECTORY/etc/init.d/  &&
   INIT_D="none"         &&
   MAN_D=/usr/share/man  &&
   ACPI=auto             &&
   PMU=auto              &&
   APM=auto              &&
-  
+
   ./install.sh
- 
+
 ) > $C_FIFO 2>&1
diff --git a/utils/laptop-mode-tools/DETAILS b/utils/laptop-mode-tools/DETAILS
index 4bd5bd4..bb53f03 100644
--- a/utils/laptop-mode-tools/DETAILS
+++ b/utils/laptop-mode-tools/DETAILS
@@ -6,11 +6,11 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/${MODULE}_${VERSION}
       SOURCE_VFY=sha1:e38745b17b7259289190b0630c15c5e9e77ff891
         WEB_SITE=http://www.samwel.tk/laptop_mode
          ENTERED=20080806
-         UPDATED=20090126
-           SHORT="A laptop power saving package for Linux systems"
+         UPDATED=20090311
+           SHORT="A laptop power-saving package for Linux systems"
 
 cat << EOF
-Laptop Mode Tools is a laptop power saving package for Linux systems.
+Laptop Mode Tools is a laptop power-saving package for Linux systems.
 It allows you to extend the battery life of your laptop, in several 
 ways. It is the primary way to enable the Laptop Mode feature of the 
 Linux kernel, which lets your hard drive spin down. In addition, it 


More information about the Lunar-commits mailing list