LinHES Forums
http://forums.linhes.org/

HOW TO: Wake Up your MythBox with Wake on Lan and a Router
http://forums.linhes.org/viewtopic.php?f=11&t=18673
Page 2 of 2

Author:  mythman13 [ Tue Sep 09, 2008 4:01 am ]
Post subject:  flash wearing

UPDATE: Flash Wearing!!

I've foolishly run the checkwakeup.sh script from the /jffs flash memory. This might (I'm not an expert on these matters) eventually burn out your flash memory on your device (although I hope it dosen't do this quickly as I've been running this for over a month from this directory and I don't want to toast my new $80 router!!).

All I've changed is the location the CRON job runs it from, so that it reads like this:
Code:
*/1 * * * * root /tmp/checkwakeup.sh
and created a startup script to copy the checkwakeup.sh script to RAM when the router boots so that it can be run from here. Just add this line to the start of the startup scripts (even if you have the mythwebwelcome page):
Code:
cp /jffs/checkwakeup.sh /tmp/checkwakeup.sh


Sorry about this oversight but I completely forgot about the potential problems of running stuff from a flash drive. If anyone has any technical knowledge on flash etc. that they can post to put my worries aside then that would be great thanks.

Mythman

Author:  gazer [ Thu Oct 02, 2008 10:16 am ]
Post subject:  Works with tomato router too!

Awesome!

I already had tomato flashed on my router, so I tried it on that.

A couple of minor differences:
  1. There is no option for "Clean JFFS." Don't worry about it.
  2. SSH Daemon is under "Admin Access"
  3. Tomato uses ether-wake instead of wol, so the relevant line in checkwakeup.sh should be:
    Code:
    /usr/bin/ether-wake <MAC ADDRESS>
  4. There is no way to set the cron via the router's website in tomato. Instead, from the command line run:
    Code:
    cru a CheckMythWake "*/1 * * * *  /tmp/checkwakeup.sh"


That should do it!

Author:  mythman13 [ Fri Oct 03, 2008 10:26 am ]
Post subject:  thanks

Glad it worked for you gazer!

Thank you for posting the differences for the Tomato firmware: it's great to have some user feedback and tips for those who might be using different firmwares! I hope you don't mind but I've added them to the Knoppmythwiki page on this.

--Mythman

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/