.k. Posted December 27, 2013 Posted December 27, 2013 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 Quote
boob00 Posted December 28, 2013 Posted December 28, 2013 (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 December 28, 2013 by boob00 Quote
Sebkinne Posted December 28, 2013 Posted December 28, 2013 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 Quote
.k. Posted December 28, 2013 Author Posted December 28, 2013 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 Quote
Sebkinne Posted December 28, 2013 Posted December 28, 2013 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 Quote
Foxtrot Posted December 29, 2013 Posted December 29, 2013 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.