Posted: Wed Mar 19, 2008 4:32 Post subject: WOL Script
I recently discovered how awesome WOL is, but it is a real pain entering/remembering "/usr/sbin/wol -i [ip address] [mac address]" I always start the same computer (my desktop) so I always use the exact same command. Is there a way I can hardcode my router so that as soon as I ssh in, all I have to do is type "desktop"? I did see a WOL script that I put into the startup script for my router, but it didnt work the way I thought and it still had a longer command than "desktop." Is this possible? I would greatly appreciate any help.
BTW, if you save WOL command in the web gui as custom script, you can run it by typing ./custom.sh instead. That script will remain even after reboot, but desktop.sh will not.
This is a great idea, but /tmp is removed after a router reboot, so if the power goes out, you'll have to type the whole thing.
Edit: Nevermind, I missed this part.
soulstace wrote:
BTW, if you save WOL command in the web gui as custom script, you can run it by typing ./custom.sh instead. That script will remain even after reboot, but desktop.sh will not.