WOL script for RouterTech firmware - possible?

All about firmwares for routers. Support for RouterTech firmwares is here too.
Post Reply
Winno
Novice
Novice
Posts: 12
Joined: Tue May 30, 2006 1:00 pm

WOL script for RouterTech firmware - possible?

Post by Winno » Fri Jun 09, 2006 3:26 pm

Not being a linux techie, I was wondering is it possible to send a WOL packet from a script.

The idea is I could run as a cron job on the router and wake up a PC on my LAN.

Possible?
User avatar
Shotokan101
RouterTech Team
RouterTech Team
Posts: 4779
Joined: Thu Jan 26, 2006 3:17 pm
Location: Glasgow, Scotland

Post by Shotokan101 » Fri Jun 09, 2006 3:38 pm

Should be reasonably straightforward - check this link for the basic info. and a java example :-

http://www.jibble.org/wake-on-lan/
Jim

.....I'm Sorry But I Can't Do That Dave.....
pefr_it
Novice
Novice
Posts: 15
Joined: Wed Sep 27, 2006 10:12 pm

WOL executable for routertech firmware

Post by pefr_it » Fri Jan 05, 2007 2:59 pm

I Compiled the attached program WAKELAN and tested on the last routertech firmware V 2.1.

Il can wake up a computer in the lan and can be used in a cron script.

The usage is:
Usage: ./wakelan [options] [mac] [broadcast] [port]
-b addr broadcast address
-m mac mac address of host
-p port UDP port to broadcast to
-v[v] version

It is compiled form the source at ftp://metalab.unc.edu/pub/Linux/system/ ... 1.1.tar.gz

You have to load it in the var directory of the router with sft, to change permission (chmod +x) and after You can execute it.

unfortunatey is a stand alone package not included in the firmware, so if You reboot the router You have to reload it.... It would be fantastic if it could be added to a future release of firmware.
Attachments
wakelan.zip
Executable for WOL
(4.43 KiB) Downloaded 395 times
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Fri Jan 05, 2007 4:14 pm

Looks interesting, and, better still, it is GPLed.:) We might consider adding it to the next RT firmware release (v2.2). Thanks.
Edit: PS - I was talking about building from source, not the precompiled binary.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
JackTheVendicator
Newbie
Newbie
Posts: 1
Joined: Sat Jan 06, 2007 7:02 pm

Post by JackTheVendicator » Sat Jan 06, 2007 7:27 pm

BusyBox 1.2.x already has ether-wake in the source :D
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Sat Jan 06, 2007 9:11 pm

That's good to know for future reference. :) But we're sticking with 0.61pre for the time being ...
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
Post Reply