Hi Christian,

Cristian Ionescu-Idbohrn wrote:
Isn't this more sensical?

--- 90-hdparm.sh~       2008-08-19 21:59:10.000000000 +0200
+++ 90-hdparm.sh        2008-12-23 17:18:23.000000000 +0100
@@ -12,7 +12,7 @@
 DO_HDPARM=y
 if [ -e /usr/sbin/laptop_mode ] ; then
   LMT_CONTROL_HD_POWERMGMT=$(. /etc/laptop-mode/laptop-mode.conf && echo 
"$CONTROL_HD_POWERMGMT")
-  if [ "$LMT_CONTROL_HD_POWERMGMT" != 0 ] ; then
+  if [ "$LMT_CONTROL_HD_POWERMGMT" != 1 ] ; then
     # Laptop mode controls hdparm -B settings, we don't.
     DO_HDPARM=n
   fi

Well, no. The logic is like this: if LMT_CONTROL_HD_POWERMGMT is nonzero, then *we* shouldn't do it because laptop mode tools already does this. So we set our flag to N if the LMT flag is set to nonzero!

Cheers,
Bart



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to