opkg update
opkg install luci-app-wol
nano /etc/config/etherwake
#option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake'
option 'pathes' '/usr/bin/etherwake'
...
#option 'name' 'example'
#option 'mac' '11:22:33:44:55:66'
#option 'password' 'AABBCCDDEEFF'
cd /usr/lib/lua/luci/model/cbi/
mv wol.lua wol.lua.bk
wget https://raw.githubusercontent.com/openwrt/luci/luci-0.11/applications/luci-wol/luasrc/model/cbi/wol.lua --no-check-certificate

At lines 56-58 of wol.lua:

nano wol.lua
--sys.net.mac_hints(function(mac, name)
-- host:value(mac, "%s (%s)" %{ mac, name })
host:value("00:1d:09:2e:36:93", "Dell T105")
--end)
reboot

Starting WoL utility(via eth1):

/usr/bin/etherwake -D -i "eth1" "00:1d:09:2e:36:93"
The target station address is 0:1d:9:2e:36:93.
Packet is  00 1d 09 2e 36 93 00 1d 09 2e 36 93 08 42 ff ff ff ff ff ff 00 1d 09 2e 36 93 00 1d 09 2e...
Sendto worked ! 116.

Starting WoL utility(via wlan0):

/usr/bin/etherwake -D -i "wlan0" "00:1d:09:2e:36:93"
The target station address is 0:1d:9:2e:36:93.
Packet is  00 1d 09 2e 36 93 00 1d 09 2e 36 93 08 42 ff ff ff ff ff ff 00 1d 09 2e 36 93 00 1d 09 2e...
Sendto worked ! 116.

Comments powered by CComment