Jump to content

Recommended Posts

Posted

Hi,

I would like to use the leds to segnalise me when something happened.

For example im running bully on my pineapple and it would be nice if one of the leds turns on or starts blinking when bully found the key.

Is this possible?

Thanks

Posted (edited)

I dont have a direct way to achieve this, but if you look into the blackout infusion by newbi3 and find out how the lights are being turned on and off, and then use that to write a script where an event triggers the led's this may be a way to accomplish this.

Edited by boob00
Posted

We have a script called "led" on the pineapple. We put it there to allow just that.

The issue is, after running custom leds, you loose the normal led behavior till a reboot.

Best regards,

Sebkinne

Posted

Thanks a lot!

With the led script its very easy.

#!/bin/sh

ps -ef | grep -v grep | grep /usr/bin/bully

if [ $? -eq 0 ]
then
led red on

else
led red off

fi
Posted

I'll be adding more functionality to the led function soon:

Notify and clear_notify arguments. They will cause a notification blinking and the clear_notify will restore the previous LED functionality.

Best Regards,

Sebkinne

Posted

Might not be what you're looking for, but there be certain kmods you can get via opkg and configure them in a file, i did this with the WPS led on my Mark IV and dont see any reason why it wouldnt work in this case. I think the package names were called stuff like 'kmod-led-heartbeat', search the Open WRT wiki for more info on that kinda stuff.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...