Package: laptop-mode-tools Version: 1.50-1 Severity: minor Tags: patch
If the device is down, the attempt to configure power levels causes an error message. --- Note that this probably applies equally to the ipw module, but I don't own the hardware to test it. Clemens .../laptop-mode-tools/modules/wireless-iwl-power | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/usr/share/laptop-mode-tools/modules/wireless-iwl-power b/usr/share/laptop-mode-tools/modules/wireless-iwl-power index e934c7d..5e66a3b 100755 --- a/usr/share/laptop-mode-tools/modules/wireless-iwl-power +++ b/usr/share/laptop-mode-tools/modules/wireless-iwl-power @@ -16,6 +16,7 @@ findWifiIfsByDriver () { local DEVICE; local LINK_TARGET; + local ENABLED; for DEVICE in /sys/class/net/*; do if [ -d $DEVICE/wireless -a -h $DEVICE/device/driver ]; then @@ -23,8 +24,9 @@ findWifiIfsByDriver () { # the driver. LINK_TARGET=`readlink $DEVICE/device/driver` LINK_TARGET=${LINK_TARGET##*/} + ENABLED=`cat $DEVICE/device/enable` - if [ "$LINK_TARGET" = "$1" ] ; then + if [ $ENABLED -eq 1 -a "$LINK_TARGET" = "$1" ] ; then # add the interface name to the list WIFI_IFNAMES="$WIFI_IFNAMES ${DEVICE##*/}" fi -- 1.6.4.264.g36d31 -- System Information: Debian Release: 5.0.2 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages laptop-mode-tools depends on: ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip ii psmisc 22.6-1 Utilities that use the proc filesy ii util-linux 2.13.1.1-1 Miscellaneous system utilities Versions of packages laptop-mode-tools recommends: ii acpid 1.0.8-1lenny1 Utilities for using ACPI power man ii apmd 3.2.2-12 Utilities for Advanced Power Manag ii ethtool 6+20080913-1 display or change Ethernet device ii hal 0.5.12~git20090406.46dc48-2 Hardware Abstraction Layer ii hdparm 8.9-3 tune hard disk parameters for high ii net-tools 1.60-22 The NET-3 networking toolkit ii sdparm 1.02-1 Output and modify SCSI device para ii wireless-too 29-1.1 Tools for manipulating Linux Wirel laptop-mode-tools suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org