Subject: laptop-mode-tools: $ENABLE_LAPTOP_MODE_TOOLS ignored
Package: laptop-mode-tools
Version: 1.55-1
Severity: normal
Tags: patch
Laptop-mode is started even if the $ENABLE_LAPTOP_MODE_TOOLS option is set to
0. I believe this is a bug in /usr/sbin/laptop_mode and would suggest the
following change:
--- laptop_mode.old 2010-11-03 09:27:17.598169141 +0100
+++ laptop_mode 2010-11-03 09:26:04.693167032 +0100
@@ -229,7 +229,7 @@
exit 1
fi
-if [ $ENABLE_LAPTOP_MODE_TOOLS = x0 ]; then
+if [ $ENABLE_LAPTOP_MODE_TOOLS -eq 0 ]; then
log "MSG" "laptop-mode-tools is disabled in config file. Exiting"
exit 0;
fi
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid-updates
APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-25-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages laptop-mode-tools depends on:
ii lsb-base 4.0-0ubuntu8 Linux Standard Base 4.0 init
scrip
ii psmisc 22.10-1 utilities that use the proc file s
ii util-linux 2.17.2-0ubuntu1 Miscellaneous system utilities
Versions of packages laptop-mode-tools recommends:
ii acpid 1.0.10-5ubuntu2.1 Advanced Configuration and Power I
ii ethtool 6+20091202-1 display or change Ethernet device
ii hal 0.5.14-0ubuntu6 Hardware Abstraction Layer
ii hdparm 9.15-1ubuntu9 tune hard disk parameters for
high
ii net-tools 1.60-23ubuntu2 The NET-3 networking toolkit
ii pm-utils 1.3.0-1ubuntu2 utilities and scripts for power
ma
ii sdparm 1.02-1 Output and modify SCSI device
para
ii wireless-tools 30~pre9-3ubuntu4 Tools for manipulating Linux
Wirel
laptop-mode-tools suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]