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

WOL my Home-Server on startup of the router

Discussion in 'Tomato Firmware' started by Huberer, Feb 8, 2011.

  1. Huberer

    Huberer Addicted to LI Member

    Hello,

    I'm not sure what happened but my thread was gone. Therefore a new one.

    I use a RT-N16 with the latest TeddyBear-Tomato-Mod. This router I normally disconnect from power when I'm not at home.
    Since a few days I've a Windows Home Server and I want that the router should wake it (WHS is in hibernation) up on start-up.
    At the moment I use the command
    ether-wake -i $(nvram get lan_ifname) xx:xx:xx:xx:xx (xx is MAC)

    under Administration - Scheduler (every day and every 3 minutes). This works perfect.
    But I only want to send just one wake-up signal to the Server and not every 3 minutes.
    How can I solve this matter? I've tried to use this command under Admin - Scripts - Init but it didn't work.

    Please help me to solve this issue

    Thanks in advance
    Huberer
     
  2. Toxic

    Toxic Administrator Staff Member

    you are a new user, your post is moderated. only when you become a full member do you then have full priviledges to post without moderation. thats the forum rules. ;)
     
  3. Huberer

    Huberer Addicted to LI Member

    Sory I didn't know. This is my first post because I couldn't find the answer by searching.
    Huberer
     
  4. rs232

    rs232 Network Guru Member

    If you need to send just on packet you can sent it either via the shell or the web GUI, no need to use the scheduler.
    If you still want to use the scheduler just change the frequency of the custom/scheduler instead ;-)

    finally if you just need to WOL when the router boots up add the command in the administration/scripts/init e.g.

    sleep 30
    /usr/bin/ether-wake 00:00:00:00:00:00

    HTH
     
  5. Huberer

    Huberer Addicted to LI Member

    Hello re232,

    thanks your script works perfect :thumbups:
    What I've forgotten before was the sleep command. That's why I didn't work.
    Now everything is ok.

    Thanks again
    Huberer
     

Share This Page