1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Ledsoff/on scheduling

Discussion in 'Asuswrt-Merlin' started by jenom, Jan 28, 2020.

  1. jenom

    jenom Regular Contributor

    Joined:
    Apr 3, 2019
    Messages:
    55
    Location:
    Canada
    If want to turn off LEDs at midnight, do I enter 23 or 0 as an hour ?
    How about to be more precise, and enter minutes into LED scheduling scripts ?

    cru a lightsoff "0 18 * * * /jffs/scripts/ledsoff.sh"

    What is the command, if I want to keep POWER LED on, everything else is on?
    tried "nvram set led_disable=2" ..........does not change anything !!

    #!/bin/sh
    nvram set led_disable=2
    service restart_leds

    Thanks !






     
  2. thelonelycoder

    thelonelycoder Part of the Furniture

    Joined:
    Jan 23, 2014
    Messages:
    6,363
    Location:
    Switzerland
    Every midnight is
    Code:
    0 0 * * * <command>
    The LEDs cannot be targeted individually. It's an all or nothing deal.