Skip to main content

网络唤醒

安装etherwake软件包

opkg install etherwake

添加配置

配置文件位置:/etc/config/etherwake

config 'etherwake' 'setup'
option 'pathes' '/usr/bin/etherwake'
option 'sudo' 'off'
option 'interface' 'br-lan'
option 'broadcast' 'off'

config 'target'
option 'name' 'MacMini'
option 'mac' 'd0:11:e5:79:3c:b4'
option 'wakeonboot' 'off'
  • setup -> interface:连接到局域网的网卡接口,和要被唤醒的设备处在同一个局域网网段中;
  • target -> name:名称任意,在执行设备唤醒命令时作为参数传入,指定唤醒哪个设备;
  • target -> mac:被唤醒设备的网卡MAC地址;

唤醒命令

/etc/init.d/etherwake start MacMini