I needed a way to wake up my server when I was away. And since I run DD-WRT, I Wrote a WOL Script for it. You can read more about it here

Some people emailed me or asked via the comments section if I would create a version for Tomato, which is another popular firmware for routers

Now that I upgraded my main router to a Bufallo WZR-HP-AG300H, I had my old and trusty Buffalo WHR-G54S to play with, so I loaded Tomato on it, and decided to modify my WOL scrit for it.

Enjoy!

 

Once you get the script into your router (copy and paste into VI or WinSCP), to use it, all you have to do is type “./wol.sh <servername> and the script will handle the rest

Don’t forget to “chmod +x” the script first

This script dumps out the “dhcpd_static” nvram variable into “/tmp/static.hosts”, so if you have a DHCP reservation for your server like I do, it should be included in this file as a “static” ip adress, along with the MAC address, which is what you really need for WOL to work

Facebook Twitter Email Linkedin Digg Delicious