Hi Ivan,

Ivan wrote:
> setLEDAsusWireless()
> {
>    action=`test "$1" -ne 0 && (echo 1 || echo 0)`
>    test -w /proc/acpi/asus/wled && echo -n "$action" >
> /proc/acpi/asus/wled
> }

Thanks for reporting. I'm considering changing it to:

setLEDAsusWireless()
{
  if [ -w /proc/acpi/asus/wled ] ; then
    if [ "$1" -ne 0 ] ; then
      echo -n 1 > /proc/acpi/asus/wled
    else
      echo -n 0 > /proc/acpi/asus/wled
    fi
  fi
}

It's much easier to read like this. Could you confirm that this works for you?

Cheers,
Bart



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to