Paul Sladen:
this bug is not related to the one you'we reported. That bug corrected the fact
that the led wasn't synchronized after the boot. This bug only want to point
out that there are errors in
/etc/acpi/asus-wireless.sh is buggy and moreover should use the new functions
written in
/usr/share/acpi-support/state-funcs
it should look like this:
### START ###
#!/bin/bash
# Find and enable/disable wireless devices
. /usr/share/acpi-support/state-funcs
/etc/acpi/start.d/60-asus-wireless-led.sh
/etc/acpi/wireless.sh
if isAnyWirelessPoweredOn ; then
setLEDAsusWireless 1
else
setLEDAsusWireless 0
fi
### END ###
or, better to say, a new function called "syncLEDAsusWireless" should be
added in /usr/share/acpi-support/state-funcs so that every acpi script
use it (such as /etc/acpi/start.d/60-asus-wireless-led.sh and the one in
resume.d) and there will be less code duplication
to tell the truth, as we can see in bug https://launchpad.net/bugs/66083
even the function isAnyWirelessPoweredOn is wrong, but it can be fixed
easily.
So the things to be done are:
-) fix bug https://launchpad.net/bugs/66083 (there is already a fix described
in the bugreport)
-) add a function syncLEDAsusWireless to /usr/share/acpi-support/state-funcs
(will attach it)
-) rewrite /etc/acpi/asus-wireless.sh (will attach it)
-) rewrite /etc/acpi/start.d/60-asus-wireless-led.sh (will attach it)
-) rewrite /etc/acpi/resume.d/60-asus-wireless-led.sh (will attach it)
They are all very easy things to do, fortunately!
--
asus-wireless.sh wants to switch led on even if no wifi card is present
https://launchpad.net/bugs/38354
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs