| View previous topic :: View next topic |
| Author |
Message |
richtech
Joined: 01 Jul 2008 Posts: 1 Location: Nigeria
|
Posted: Tue Jul 01, 2008 9:04 pm Post subject: Support for Alix LEDs |
|
|
Thank you very much for this software, its great.
Would like to be able to use the LEDs on Alix boards.
This board is a perfect fit for Zeroshell so far. It makes DIY router/firewall/Stable AP a breeze.
OpenWRT has a patch that drives the LEDs but one has to write a script to use the LEDs for now. |
|
| Back to top |
|
 |
a_brandl
Joined: 06 May 2009 Posts: 2
|
Posted: Wed May 06, 2009 11:08 am Post subject: C Program for accessing the ALIX LEDs |
|
|
Hi!
We are using the alixled program for accessing the LEDs. It is available under
http://linux.1wt.eu/alix/util/alixled/
Best regards,
Albert Brandl |
|
| Back to top |
|
 |
richedkid
Joined: 27 May 2009 Posts: 3
|
Posted: Wed May 27, 2009 2:17 am Post subject: |
|
|
| Would be able to use the LEDs on Alix boards... by the way thank you for the software... I really like it.. you have to write a script to use the LEDs right.. then would you mind sharing us that? |
|
| Back to top |
|
 |
a_brandl
Joined: 06 May 2009 Posts: 2
|
Posted: Thu May 28, 2009 10:51 am Post subject: |
|
|
I didn't write the software, just provided the link ;-)
When you start alixled without arguments, it shows a short
usage description:
| Quote: | [...]
Usage:
- alixled led1|led2|led3|all on|off|toggle|state [debug]
- alixled switch state [debug]
|
Up to now I've only usedl "alixled led1 on" or "alixled 2 off", depending on the state
of the device. Here is a short example that sets the state of the first LED to on or
off, depending on the online state of the device
| Code: |
[Perform an online check, e.g. with wget]
if [ $? -eq 0 ]; then
[path to alixled] led1 on
else
[path to alixled] led1 off
fi
|
Regards,
Albert Brandl |
|
| Back to top |
|
 |
|