From: Georgios Kontaxis Date: Sun, 21 Jun 2026 17:23:19 +0000 (+0000) Subject: etherwake: remove internal use of sudo X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=beb1e12eefcbe00cb523abc59a386f489bf2b8e0;p=openwrt-packages.git etherwake: remove internal use of sudo OpenWrt defaults to using root to run init scripts so there is no need to elevate privileges. A non-privileged user can prefix the script's execution command with 'sudo'. Signed-off-by: Georgios Kontaxis --- diff --git a/net/etherwake/files/etherwake.config b/net/etherwake/files/etherwake.config index 965cdcfd8..626011bdc 100644 --- a/net/etherwake/files/etherwake.config +++ b/net/etherwake/files/etherwake.config @@ -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 option 'interface' '' diff --git a/net/etherwake/files/etherwake.init b/net/etherwake/files/etherwake.init index 0504cf1c0..bc2963c16 100644 --- a/net/etherwake/files/etherwake.init +++ b/net/etherwake/files/etherwake.init @@ -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}"