Comment 5 for bug 38354

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

in edgy there is the same problem.
I will attach the new asus-wireless.sh and II re explain the problem:

If no wireless card is present (yes I've removed it from my laptop) the script called to determinate the state will return an empty string.
In this case the current script does a check on the returned string and it disables the led only if it's "0". since the returnet string is "" the led is enabled.
the error is that the led must be enabled only if the returned string contains "1" and not "everything but 0".
To tell the truth the real error is done in /etc/acpi/wireless.sh... note that this script will echo something strange if a user has more than one wireless card:
"11" if he has two devices enabled. In my opinion that script (/etc/acpi/wireless.sh) should be rewritten, but a simple solution is using the one attached (/etc/acpi/asus-wireless.sh)