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:
The contents of ledson.sh is:
The contents of ledsoff.sh is:
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 ?
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 ?