In this way a script can simply include the library
/usr/share/acpi-support/wireless-lib and do the following operations:
1) switch_wireless (which includes also the ability to adjust leds)
2) adjust_leds (to be executed at boot or during resume)
When a new method to control leds is "discovered" just add a new file in
/usr/share/acpi-support/wireless-led/
The same thing is valid for new methods to control wireless status
/usr/share/acpi-support/wireless/
these new files must (see attached README)
1) be executable
2) accept 2 parameters (if_name and {on|off|status} )
3) return 0 if the if is ON, 1 if OFF, and 2 if unknown for any reason
I think this is the simplest way to handle frequent changes...
--
code duplication in wireless scripts
https://launchpad.net/bugs/43061
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs