Displaying 2 results from an estimated 2 matches for "blueledfunct".
2018 Dec 13
6
Running a command at startup
On a support forum, I was told that to turn off my board's blue led run:
echo none | sudo tee /sys/class/leds/blue\:heartbeat/trigger
Well, this does not survive a system reboot.? So I was told:
Add the off bit to
??? /etc/rc.local
Add it above "exit 0"
So of course, CentOS is past using rc.local and recommends:
# It is highly advisable to create own systemd services or udev
2018 Dec 13
0
Running a command at startup
--On Wednesday, December 12, 2018 7:04 PM -0500 Robert Moskowitz
<rgm at htt-consult.com> wrote:
> So can someone point me to how to make this into a simple systemd service?
I'd first create a utility script (untried code!) like this:
/usr/local/sbin/BlueLedFunction.sh
#!/bin/sh
echo "$1" > /sys/class/leds/blue\:heartbeat/trigger
Then I'd create /etc/systemd/system/BlueLedOff.service with appropriate
sections to invoke that script with "none" as an argument and to run in
your desired runlevel. (Take a look at the examples in...