etherwake: polish example configuration
authorGeorgios Kontaxis <redacted>
Sun, 21 Jun 2026 18:20:31 +0000 (18:20 +0000)
committerGeorgios Kontaxis <redacted>
Sun, 21 Jun 2026 20:21:04 +0000 (20:21 +0000)
Signed-off-by: Georgios Kontaxis <redacted>
net/etherwake/files/etherwake.config
net/etherwake/files/etherwake.init

index e3ebfcbd9f84fd85cb90f1915073314d589c347c..7ad7789c521e89209bb2cc0c53aa8ae8d4d17830 100644 (file)
@@ -1,24 +1,17 @@
 config 'etherwake' 'setup'
-       # interface, defaults to 'eth0'
-       # -i <ifname>
-       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'
index 27d64f823f0a9e5334a4692dbd22eaa77f2b5ad5..661f9edd677780f41b83e890d6da67c1fff2a90c 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT