Power LED Heartbeat script
#1
Just thought I'd post the current version of the shell script I am using on my Pine64 to make the user controllable System LED (the one that you can attach near the headphones jack, or via the EXP header). I added it to /etc/rc.local (make sure you put an " & " at the end, so it doesn't block rc.local continuing / exiting), so now every time the pine64 starts up, I get a little heartbeat indicator going so I know it's running ok. Since it's a gist, you can also download it via wget or curl... just copy the URL you get from the 'raw' button up the top right. 

Next step will be working out how to intercept the power button... perhaps via udev, since that already responds to the power button interrupt, but doesn't know what to do with it out of the box. 

https://gist.github.com/pfeerick/00b04df...b4e1f7c168
  Reply


Messages In This Thread
Power LED Heartbeat script - by pfeerick - 09-18-2016, 05:16 AM
RE: Power LED Heartbeat script - by tkaiser - 09-18-2016, 06:25 AM
RE: Power LED Heartbeat script - by pfeerick - 09-18-2016, 05:43 PM
RE: Power LED Heartbeat script - by pfeerick - 09-20-2016, 04:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)