How to wake on LAN by hostname on OpenWrt

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

Leave a Reply

Your email address will not be published.