openwrt下etherwake的手动安装及用法
opkg update
opkg install etherwake
然后按照下面的文档编辑/etc/config/etherwake这个文件
或者直接拷贝出来修改也行。option 'broadcast' 'on' 或者 'off'都行 一个估计是瞄准后定向的。
config 'etherwake' 'setup'
# possible program paths
option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake'
# use sudo, defaults to off
option 'sudo' 'on'
# interface, defaults to 'eth0'
# -i <ifname>
option 'interface' 'eth1'
# send wake-up packet to the broadcast address, defaults to off
# -b
option 'broadcast' 'on'
config 'target'
# name for the target
option 'name' 'yhhome'
# mac address to wake up
option 'mac' 'd0:50:99:96:52:2e'
# password in hex without any delimiters
option 'password' 'AABBCCDDEEFF'
# wake up on system start, defaults to off
option 'wakeonboot' 'off'
# To add a new target use:
# uci add etherwake target
# uci set etherwake.@target[-1].name=example
# uci set etherwake.@target[-1].mac=11:22:33:44:55:66
# uci set etherwake.@target[-1].password=AABBCCDDEEFF
# uci set etherwake.@target[-1].wakeonboot=off
然后opkg update
opkg install sudo
然后运行/etc/init.d/etherwake start yhhome
即可