1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help on how to use WOL to start my server

Discussion in 'Tomato Firmware' started by wycf, Feb 28, 2011.

  1. wycf

    wycf Network Guru Member

    When we have a power failure, everything goes down includes my Tomato router and my home server. When power resumed, the router will power on but not the server. If I am not home, I can still login the router remotely via https then use WOL to start the server.

    But I really want the server can be started automatically after power resumed. So I think I might able to write a script in the Tomato router (maybe in WAN UP) then use some command to send wake up signal to my server.

    Could someone help me to write the command? I don't know how to write the command (or script)

    Thanks a lot.
     
  2. Engineer

    Engineer Network Guru Member

    Maybe something like this in your Init area (under Administration, scripts)....

    sleep 5
    etherwake xx:xx:xx:xx:xx:xx

    Where xx.... = MAC address of server?
     
  3. wycf

    wycf Network Guru Member

    Thanks a lot! I got it work like this:
    sleep 60
    ether-wake xx:xx:xx:xx:xx:xx

    Cheers!
     

Share This Page