/etc/acpi/asus-wireless.sh does not use the setLEDAsusWireless function

Bug #66087 reported by Nicolò Chieffo
2
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
New
Undecided
Unassigned

Bug Description

as we can see in /etc/acpi/asus-wireless.sh there's no use of the function defined in /usr/share/acpi-support/state-funcs.
This is how the file looks now:

#!/bin/bash
# Find and enable/disable wireless devices

state=`. /etc/acpi/wireless.sh`

if [ "$state" = "0" ]; then
      echo -n 0 > /proc/acpi/asus/wled
else
      echo -n 1 > /proc/acpi/asus/wled
fi
# ---- END ----

and this is how it should be:

#!/bin/bash
# Find and enable/disable wireless devices

. /usr/share/acpi-support/state-funcs

state=`. /etc/acpi/wireless.sh`

setLEDAsusWireless "$state"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.