Etherwake configuration
See also: Wake on LAN configuration, Scheduling tasks
The configuration file /etc/config/etherwake is provided by the etherwake package and defines hosts to wake up when starting the /etc/init.d/etherwake script.
Install package luci-app-wol for a web interface.
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' 'eth0' option 'broadcast' 'off'
Below is a listing of the parameters defined for this section.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
pathes | path | yes | (none) | path to etherwake binary (typo is normal) |
sudo | boolean | no | off | Should Etherwake invoke sudo for superuser privileges? |
interface | string | no | eth0 | On which interface to send the WOL packages |
broadcast | boolean | no | off | Send WOL packets to the broadcast ethernet address instead of the host's |
Target
config 'target' option 'name' 'example' # name for the target option 'mac' '11:22:33:44:55:66' # mac address of the machine 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 up |
password | string | no | (none) | Send given SecureON password when waking up the host |
wakeonboot | boolean | no | off | Don't send WOL packet when booting OpenWrt |
Example
config 'etherwake' 'setup' option 'pathes' '/usr/bin/etherwake' option 'sudo' 'off' 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'
Wake target
# Syntax /etc/init.d/etherwake start <target> # Wake up "popeye" /etc/init.d/etherwake start popeye