0%

Asuswrt Merlin Extensions

LED Timing Switch

  1. telnet or use Winscp to connect to Router.
  2. cd /jffs/scripts/
  3. nano -w /jffs/scripts/services-start
1
2
3
#!/bin/sh
cru a lightsoff "0 23 * * * /jffs/scripts/ledsoff.sh"
cru a lightson "0 06 * * * /jffs/scripts/ledson.sh"
  1. nano -w /jffs/scripts/ledsoff.sh

    1
    2
    3
    4
    #!/bin/sh
    nvram set led_disable=1
    nvram commit
    service restart_leds
  2. nano -w /jffs/scripts/ledson.sh

    1
    2
    3
    4
    #!/bin/sh
    nvram set led_disable=0
    nvram commit
    service restart_leds
  3. chmod a+rx /jffs/scripts/ledsoff.sh
    chmod a+rx /jffs/scripts/ledson.sh
    chmod a+rx /jffs/scripts/services-start

References

在华硕原版固件merlin版安装goagent等功能