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!

spin down during nights off during days

Discussion in 'Asuswrt-Merlin' started by amplatfus, Apr 20, 2017.

  1. amplatfus

    amplatfus Regular Contributor

    Joined:
    Nov 25, 2016
    Messages:
    69
    Hi

    I just got the idea to put the HDD in spin down only during nights.
    I created below scripts and thinking to put them in cru list. I am in development phase.
    If you have any ideas please share. I searched the forums but did not find something similar.

    Code:
    #!/bin/sh
    #spin down on during days
    killall -q sd-idle-2.6
    nvram set usb_idle_timeout=0
    nvram commit
    
    Code:
    #!/bin/sh
    
    #spin down during nights
    nvram set usb_idle_timeout=7200
    nvram commit
    killall -q sd-idle-2.6
    #process
    sleep 10
    sd-idle-2.6 -i 7200
    
    BR.
     

Share This Page