Sunday, June 12, 2011

Send Wake-on-LAN magic packets in Openwrt

Wake-on-LAN (wol) can be used to wake up computers on your subnet in Openwrt. Make sure the wol package is installed. Then issue the following command from the shell. Make sure the argument for -h matches the broadcast address of your subnet. Most out-of-the box networks are configured to use the same broadcast address as the example below. You will need to specify the MAC address of the device you wish to wake.
/usr/bin/wol -h 192.168.1.255 <MAC address>

No comments: