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