Go to Control Panel / Task Scheduler and add the content of these scripts as root
scripts.
Codes have been taken from this article.
turn-leds-off.sh
: turns leds offturn-leds-on.sh
: turn leds back on
Ex (this is how I use it): turn leds daily at 10PM, turn them back on at 6AM.
Function code working from Task scheduler script on the DSM or from SSH:
echo 0 >/dev/ttyS1 Power on
echo 1 >/dev/ttyS1 Power off
echo 2 >/dev/ttyS1 Short beep
echo 3 >/dev/ttyS1 Long beep
echo 4 >/dev/ttyS1 Power LED on
echo 5 >/dev/ttyS1 Power LED flash
echo 6 >/dev/ttyS1 Power LED off
echo 7 >/dev/ttyS1 Status LED off
echo 8 >/dev/ttyS1 Status LED on green
echo 9 >/dev/ttyS1 Status LED flash green
echo A >/dev/ttyS1 USBCopy LED flash
echo B >/dev/ttyS1 USBCopy LED off
echo C >/dev/ttyS1 Reset
echo @ >/dev/ttyS1 USBCopy LED on
echo : >/dev/ttyS1 Status LED on orange
echo ; >/dev/ttyS1 Status LED flash orange
You can mix several code together.
echo 48 >/dev/ttyS1 Power LED on + Status LED on green