What's new

LEDs won't turn back on at the scheduled time

  • 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!

Status
Not open for further replies.

Asusme

New Around Here
Hi,

I'm using the latest stable firmware release : 378.54_2.

I've followed Merlin's guide (https://github.com/RMerl/asuswrt-merlin/wiki/Scheduled-LED-control) to get the scheduled led control to work. LEDs turn themselves off at 22:00, but for some unknown reason, won't turn back on at 7:00.

I have enabled the JFFS partition and support for custom user scripts.

The contents of my services-start is:
Code:
#!/bin/sh
/usr/sbin/cru a ScheduledReboot "20 7 * * * reboot"
/usr/sbin/cru a lightsoff "0 22 * * * /jffs/scripts/ledsoff.sh"
/usr/sbin/cru a lightson "0 7 * * * /jffs/scripts/ledson.sh"

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 a+rx and I can see the scripts listed after typing "cru l" in Telnet.

What am I doing wrong ?
 
Hi,

I'm using the latest stable firmware release : 378.54_2.

I've followed Merlin's guide (https://github.com/RMerl/asuswrt-merlin/wiki/Scheduled-LED-control) to get the scheduled led control to work. LEDs turn themselves off at 22:00, but for some unknown reason, won't turn back on at 7:00.

I have enabled the JFFS partition and support for custom user scripts.

The contents of my services-start is:
Code:
#!/bin/sh
/usr/sbin/cru a ScheduledReboot "20 7 * * * reboot"
/usr/sbin/cru a lightsoff "0 22 * * * /jffs/scripts/ledsoff.sh"
/usr/sbin/cru a lightson "0 7 * * * /jffs/scripts/ledson.sh"

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 a+rx and I can see the scripts listed after typing "cru l" in Telnet.

What am I doing wrong ?

And I am assuming that when you executed the services-start command you entered this:


chmod a+rx /jffs/scripts/services-start

Correct?


Sent from my iPhone using Tapatalk
 
And I am assuming that when you executed the services-start command you entered this:


chmod a+rx /jffs/scripts/services-start

Correct?


Sent from my iPhone using Tapatalk

Try this again and then do:

service_reboot


Sent from my iPhone using Tapatalk
 
upload_2020-3-21_14-16-12.png
 
Status
Not open for further replies.

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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