From: Georgios Kontaxis Date: Sun, 21 Jun 2026 18:20:31 +0000 (+0000) Subject: etherwake: polish example configuration X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e0c1a29cb5e30cd85991a4be2156dab13f783dea;p=openwrt-packages.git etherwake: polish example configuration Signed-off-by: Georgios Kontaxis --- diff --git a/net/etherwake/files/etherwake.config b/net/etherwake/files/etherwake.config index e3ebfcbd9..7ad7789c5 100644 --- a/net/etherwake/files/etherwake.config +++ b/net/etherwake/files/etherwake.config @@ -1,24 +1,17 @@ config 'etherwake' 'setup' - # interface, defaults to 'eth0' - # -i - option 'interface' '' + # interface to use, defaults to 'eth0' + #option 'interface' 'eth0' # send wake-up packet to the broadcast address, defaults to off - # -b - option 'broadcast' 'off' + #option 'broadcast' 'off' config 'target' # name for the target - option 'name' 'example' - # mac address to wake up - option 'mac' '11:22:33:44:55:66' - # password in ethernet hex format - option 'password' 'AA:BB:CC:DD:EE:FF' + #option 'name' 'example' + # mac address of the machine to wake up + #option 'mac' '00:11:22:33:44:55' + # (optional) 6-byte password in ethernet hex format + #option 'password' 'aa:bb:cc:dd:ee:ff' + # (optional) 4-byte password in dotted decimal format + #option 'password' '170.187.204.221' # 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 + #option 'wakeonboot' 'off' diff --git a/net/etherwake/files/etherwake.init b/net/etherwake/files/etherwake.init index 27d64f823..661f9edd6 100644 --- a/net/etherwake/files/etherwake.init +++ b/net/etherwake/files/etherwake.init @@ -14,7 +14,7 @@ start() config_load "${NAME}" # interface - config_get value 'setup' 'interface' + config_get value 'setup' 'interface' 'eth0' [ -n "${value}" ] && append PROGRAM "-i ${value}" # broadcast