etherwake: remove internal use of sudo
authorGeorgios Kontaxis <redacted>
Sun, 21 Jun 2026 17:23:19 +0000 (17:23 +0000)
committerGeorgios Kontaxis <redacted>
Sun, 21 Jun 2026 20:20:47 +0000 (20:20 +0000)
Signed-off-by: Georgios Kontaxis <redacted>
net/etherwake/files/etherwake.config
net/etherwake/files/etherwake.init

index 965cdcfd819ec75e583bbbc0d055663c97753616..626011bdc062b5002d57ba529d6b37a45e80911f 100644 (file)
@@ -1,8 +1,6 @@
 config 'etherwake' 'setup'
        # possible program paths
        option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake'
-       # use sudo, defaults to off
-       option 'sudo' 'off'
        # interface, defaults to 'eth0'
        # -i <ifname>
        option 'interface' ''
index 0504cf1c0aa75b5a4b43dd8a2b17e41229bcc109..bc2963c16f305d63aa769c8ce066c7950f4aa914 100644 (file)
@@ -21,10 +21,6 @@ start()
                exit 1
        }
 
-       # sudo
-       config_get_bool value 'setup' 'sudo' '0'
-       [ "${value}" -ne 0 ] && PROGRAM="sudo ${PROGRAM}"
-
        # interface
        config_get value 'setup' 'interface'
        [ -n "${value}" ] && append PROGRAM "-i ${value}"
git clone https://git.99rst.org/PROJECT