Table of Contents

Etherwake configuration

The configuration file /etc/config/etherwake is provided by the etherwake package and defines hosts to wake when starting the /etc/init.d/etherwake init script. An alternative opkg-package is: wol.

Please see /etc/crontabs/root to configure crond.

Sections

There are two sections setup and target defined for the configuration. Multiple wake on lan targets may exist in the file.

Setup

config 'etherwake' 'setup' option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake' option 'sudo' 'off' option 'interface' '' option 'broadcast' 'off'

Below is a listing of the parameters defined for this section.

Name Type Required Default Description
paths path ??? (none) path to etherwake binary
sudo boolean no off Etherwake usually requires sudo
interface string yes (none) On which interface to send the WOL packages
broadcast boolean no off ???

Target

config 'target' option 'name' 'example' # name for the target option 'mac' '11:22:33:44:55:66' # mac address to wake up option 'password' 'AABBCCDDEEFF' # password in hex without any delimiters option 'wakeonboot' 'off' # wake up on system start, defaults to off

Below is a listing of the parameters defined for this section.

Name Type Required Default Description
name string no (none) name of the target
mac MAC address yes (none) Specifies the MAC address of the host to wake
password string no (none) Send given SecureON password when waking the host
wakeonboot boolean no off Don't send WOL packet when booting OpenWrt

Example

config 'etherwake' 'setup' option 'paths' '/usr/bin/etherwake' option 'sudo' 'on' option 'interface' 'eth0.2' option 'broadcast' 'on' config 'target' option 'name' 'popeye' option 'mac' '00:22:33:44:55:66' option 'password' 'AABBCCDDEEFF' # password in hex without any delimiters option 'wakeonboot' 'off'

Notes

Back to top

doc/uci/etherwake.txt · Last modified: 2011/09/02 23:56 by written_direcon