isAnyWirelessPoweredOn() logic is inverted.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Medium
|
Paul Sladen |
Bug Description
the script (/usr/share/
so the script has to be modified to return true when it will encounter the first wireless device powered on and return false only if every device is off!
isAnyWirelessPo
{
for DEVICE in /sys/class/net/* ; do
if [ -d $DEVICE/wireless -a -r $DEVICE/
# If any of the wireless devices are turned on then return success
test "`cat $DEVICE/
fi
done
# otherwise return failure
return 1
}
Changed in acpi-support: | |
assignee: | nobody → sladen |
status: | Confirmed → In Progress |
Changed in acpi-support: | |
importance: | Undecided → Medium |
Well and another reason to change it is this: if in the desktop/laptop pc there are no wireless devices the return must be false and not true!