Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:user-guide:services:wol [2018/02/25 15:44] – ↷ Links adapted because of a move operation docs:guide-user:services:w_o_l:wol [2019/08/26 08:38] (current) – formatting optimized vgaetera
Line 1: Line 1:
 ====== Wake on LAN configuration ====== ====== Wake on LAN configuration ======
-The configuration file ''/etc/config/wol'' is provided by the //wol// package and defines hosts to wake when starting the ''/etc/init.d/wol'' init script. An alternative opkg-package is ''[[docs:user-guide:services:etherwake]]''+The configuration file ''/etc/config/wol'' is provided by the //wol// package and defines hosts to wake when starting the ''/etc/init.d/wol'' init script. An alternative opkg-package is ''[[docs:guide-user:services:w_o_l:etherwake]]''
  
-Please see ''[[docs:user-guide:base-system:notuci.config#etccrontabsroot|/etc/crontabs/root]]'' to configure ''crond''.+Please see ''[[docs:guide-user:base-system:notuci.config#etccrontabsroot|/etc/crontabs/root]]'' to configure ''crond''.
  
 ===== Sections ===== ===== Sections =====
- 
 There is only one section type ''wol-target'' defined for the configuration. There is only one section type ''wol-target'' defined for the configuration.
 Multiple //wake on lan targets// may exist in the file. Multiple //wake on lan targets// may exist in the file.
  
 ==== Wake on LAN targets ==== ==== Wake on LAN targets ====
- 
 A ''wol-target'' section defines the parameters the //wol// utility is started with. A ''wol-target'' section defines the parameters the //wol// utility is started with.
 The init script will start one instance of //wol// for each section of this type. The init script will start one instance of //wol// for each section of this type.
- 
  
 Below is a listing of the parameters defined for this section. Below is a listing of the parameters defined for this section.
Line 23: Line 20:
 | ''password'' | string | no | //(none)// | Send given //SecureON// password when waking the host | | ''password'' | string | no | //(none)// | Send given //SecureON// password when waking the host |
 | ''enabled'' | boolean | no | ''1'' | Don't start //wol// for this section if set to ''0'' | | ''enabled'' | boolean | no | ''1'' | Don't start //wol// for this section if set to ''0'' |
- 
  
 ===== Example ===== ===== Example =====
- 
 Example entry to wake a host with the MAC address ''00:06:29:4f:e4:b6'' in the ''192.168.0.0/24'' subnet: Example entry to wake a host with the MAC address ''00:06:29:4f:e4:b6'' in the ''192.168.0.0/24'' subnet:
  
-| ''config wol-target +<code bash> 
- option mac         00:06:29:4f:e4:b6 +config wol-target 
- option broadcast   192.168.0.255 + option mac         '00:06:29:4f:e4:b6' 
- option enabled     1 + option broadcast   '192.168.0.255' 
-'' |+ option enabled     '1' 
 +</code>
  
 ===== Notes ===== ===== Notes =====
 If //wol// does not work, the //etherwake// package can be used instead. If //wol// does not work, the //etherwake// package can be used instead.
 To wake a host on boot, and put the following command into ''/etc/rc.local'': To wake a host on boot, and put the following command into ''/etc/rc.local'':
-| ''etherwake 00:0f:3d:ce:ef:ee + 
-'' |+<code bash> 
 +etherwake 00:0f:3d:ce:ef:ee 
 +</code>
  
 This would wake the host with the MAC address ''00:0f:3d:ce:ef:ee''. This would wake the host with the MAC address ''00:0f:3d:ce:ef:ee''.
 +
  • Last modified: 2019/08/26 08:38
  • by vgaetera