How to wake on LAN by hostname on OpenWrt

2009-08-17 10:42:55 GMT

opkg update
opkg install etherwake
opkg remove wol
echo '#!/bin/sh'$'\n'"etherwake \`grep \" \$1\\$\" /etc/ethers | awk '{print \$1}'\`" > /usr/bin/wol
chmod 755 /usr/bin/wol
wol yourhostname