Hi,
* Loïc Minier <[EMAIL PROTECTED]> [2007-02-10 19:42]:
> On Sat, Feb 10, 2007, Nico Golde wrote:
> > isAnyWirelessPoweredOn()
>
> Can you test this version?
> 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 is turned on, return success
> test "$(cat $DEVICE/device/power/state)" -ne 0 && return 0
> fi
> done
> # return failure
> return 1
> }
>
> (I don't have a "state" entry in sysfs for my card.)Works as suspected. Thanks. Kind regards Nico P.S. are you going to maintain this package? Thought Raphael is doing it :) -- 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!
pgpVH6FjZQkVX.pgp
Description: PGP signature

