Another one.
The Cubitruck comes with pretty annoying flashing LEDs.
These can be easily turned off during boot.
Would be nice if below could be implemented.
/usr/local/bin/ledoff
Code:
--------------------
#!/bin/bash
#
# This script disables the LED on the Cubitruck board.
# It's started by the ledoff.service
#############################################
for i in /sys/class/leds/*
do
echo 0 > "$i"/brightness
done
exit 0
--------------------
/etc/systemd/system/ledoff.service
Code:
--------------------
Description= Turn off Cubitruck LEDs
[Service]
Type=oneshot
ExecStart=/usr/local/bin/ledoff
[Install]
WantedBy=multi-user.target
--------------------
Code:
--------------------
chmod 777 /usr/local/bin/ledoff
systemctl enable ledoff
--------------------
You could also turn the LEDs off in the script.cmd. That caused slight
problems in my setup - blue led always on.
A small one: Triode could you rename script.cmd to script.bin.fex ?
Looks a bit nicer to me. It matches the sunxi terminology
"fex2bin/bin2fex".
Cheers
::: ' Touch Toolbox and more' (http://soundcheck-audio.blogspot.com) :::
by soundcheck
------------------------------------------------------------------------
soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383
View this thread: http://forums.slimdevices.com/showthread.php?t=101624
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix