Package: acpi-support Version: 0.90-3 Severity: normal Hi, isAnyWirelessPoweredOn() { for DEVICE in /sys/class/net/* ; do if [ -d $DEVICE/wireless -a -r $DEVICE/device/power/state ] ; then # If any of the wireless devices are turned off then return failure test "`cat $DEVICE/device/power/state`" -eq 0 || return fi done # otherwise return success return 0 }
This function returns success even if /wireless does not exists and switches my LED on. Kind regards Nico -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages acpi-support depends on: ii acpid 1.0.4-5 Utilities for using ACPI power man ii dmidecode 2.8-4 Dump Desktop Management Interface ii finger 0.17-10 user information lookup program ii hdparm 6.9-1 tune hard disk parameters for high ii laptop-detect 0.12.1 attempt to detect a laptop ii libc6 2.3.6.ds1-10 GNU C Library: Shared libraries ii lsb-base 3.1-22 Linux Standard Base 3.1 init scrip ii powermgmt-base 1.29 Common utils and configs for power ii radeontool 1.5-5 utility to control ATI Radeon back ii toshset 1.72-2 Access much of the Toshiba laptop ii vbetool 0.7-1.1 run real-mode video BIOS code to a ii xbase-clients 1:7.1.ds1-2 miscellaneous X clients Versions of packages acpi-support recommends: pn laptop-mode-tools <none> (no description available) -- no debconf information -- Nico Golde - http://www.ngolde.de JAB: [EMAIL PROTECTED] - GPG: 0x73647CFF Forget about that mouse with 3/4/5 buttons, gimme a keyboard with 103/104/105 keys!
signature.asc
Description: Digital signature