• SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Scheduled LED control won't work

Quiller

Regular Contributor
I've followed merlin's guide (https://github.com/RMerl/asuswrt-merlin/wiki/Scheduled-LED-control) to get the scheduled led control to work, but for some reason the cronjobs aren't listed when I type "cru 1" in telnet. According to the guide both jobs should be listed, but they are not.

The only thing I see when I type "cru 1" is:
Code:
Cron Utility
add:    cru a <unique id> <"min hour day month week command">
delete: cru d <unique id>
list:   cru l


the contents of my services start is:
Code:
#!/bin/sh
cru a lightsoff "0 20 * * * /jffs/scripts/ledsoff.sh"
cru a lightson "0 8 * * * /jffs/scripts/ledson.sh"
sleep 10
/opt/etc/init.d/rc.unslung start

the contents of ledson.sh is:
Code:
#!/bin/sh
nvram set led_disable=0
service restart_leds


the contents of ledsoff.sh is:
Code:
#!/bin/sh
nvram set led_disable=1
service restart_leds

I've made all three files executable using chmod +x and chmod a+rx, but I can't see the scripts listed after typing "cru 1" in telnet.

What am I doing wrong?
 
I've followed merlin's guide (https://github.com/RMerl/asuswrt-merlin/wiki/Scheduled-LED-control) to get the scheduled led control to work, but for some reason the cronjobs aren't listed when I type "cru 1" in telnet. According to the guide both jobs should be listed, but they are not.

The only thing I see when I type "cru 1" is:
Code:
Cron Utility
add:    cru a <unique id> <"min hour day month week command">
delete: cru d <unique id>
list:   cru l

Copy/paste is your friend. This is the letter L as in LIST, not the number 1.
 
My mistake. Apparently it does work. Thx Merlin
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top