Skip to content

Script for DD-WRT Router to automatically wake on LAN a NAS according to various conditions

License

Notifications You must be signed in to change notification settings

fritz-hh/autowake_NAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autowake_NAS

DESCRIPTION

More and more small offices and home power users store their data in a central NAS, that can be accessed from any computer of the network. Most of the NAS users do not need to access their NAS all the time (e.g. during the week-end for small offices, or during working time for home users)

In order to save energy and increase the life time of the components, it is beneficial to switch OFF the NAS when it is not required. But it is cumbersome to allways switch ON/OFF the NAS. So any non automatic solution if not practical...

Therefore I developped this script (running on my linux based DD-WRT Router) to automatically wake on LAN my NAS according to various conditions:

  • If at least one of a configurable set of devices is online
  • Unless a curfew timeslot is defined and the current time is within this slot
  • Every day at configurable time

You may wonder how to automatically shutdown / suspend to RAM your NAS. If you have a FreeBSD based NAS (e.g. NAS4Free or FreeNAS), you may be interrested by the following scripts: https://github.com/fritz-hh/scripts_NAS4Free

PREREQUISITE

  • A DD-WRT router
  • A NAS supporting Wake on LAN (WoL) from magic paket

INSTALL

Startup Commands

DISCLAIMER

Of course, the scripts are provided without any warranty! (I am nor a unix/linux expert nor a SW developper, but a simple user)

Any contribution (new functions, fixes, problem reports) is welcome!

Feel free to use the scripts on your own router!

Kind Regards,

fritz

About

Script for DD-WRT Router to automatically wake on LAN a NAS according to various conditions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages