Hello,
i have an openmediavault server running with RAID 5 on a HP Proliant N40L Microserver. I liked to have my NAS been shutdown automatically when all my PCs/Handys/openVPN Clients/RaspberryPis are offline. That means that i am not at home. It works perfectly with the Auto Shutdown Plugin ("Shutdown" to S4).
But when i switch on my PC at home or connect it with openVPN i did not always want to manually switch the NAS back on. Therefor i wrote a bash Script for my Router, which wakes the NAS with Wake on LAN (WOL) if any of my IPs is pingable (better on a router side: IP is on the ARP cache).
Now the Auto Shutdown Plugin switches off my NAS when i am not at home. But when i come back and need it - the Tomato Router switches it automatically back on. This saves Money --> "green IT" ;D
I wrote a small howto (in german) here:
http://www.och-group.de/2013/0…r-wol-wake-on-lan-wecken/
You will find the most recent version of the bash script there. If you have any suggestions, please message to me
knumsi
Ps: Sorry for my unperfect english, i am from germany (Bavaria)
UPDATE (16.10.2013):
- I made some updates in the script. I splitted config and Script so you can wget/unzip the script from somewhere (wget) and keep the settings configurable in your admin interface.
UPDATE (03.05.2013):
- in (near) future you will find some english instructions on how to install the script the easy way on a DD-WRT and a tomato based router