From: Georgios Kontaxis Date: Sun, 21 Jun 2026 17:26:23 +0000 (+0000) Subject: etherwake: remove redundant 'pathes' option X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4e5b3b3f122eb8085c82e54906927caf921bb1c4;p=openwrt-packages.git etherwake: remove redundant 'pathes' option Signed-off-by: Georgios Kontaxis --- diff --git a/net/etherwake/files/etherwake.config b/net/etherwake/files/etherwake.config index 626011bdc..f55bf8a41 100644 --- a/net/etherwake/files/etherwake.config +++ b/net/etherwake/files/etherwake.config @@ -1,6 +1,4 @@ config 'etherwake' 'setup' - # possible program paths - option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake' # interface, defaults to 'eth0' # -i option 'interface' '' diff --git a/net/etherwake/files/etherwake.init b/net/etherwake/files/etherwake.init index bc2963c16..78120dae0 100644 --- a/net/etherwake/files/etherwake.init +++ b/net/etherwake/files/etherwake.init @@ -3,24 +3,14 @@ NAME='etherwake' START=60 -PROGRAM='' +PROGRAM='/usr/bin/etherwake' start() { - local searchlist='' - local section='' local value='' config_load "${NAME}" - # check for available program - config_get searchlist 'setup' 'pathes' - PROGRAM=$(search_program "${searchlist}") - [ -z "${PROGRAM}" ] && { - echo "${initscript}: No ${NAME} program installed. Check: opkg list | grep ${NAME}" - exit 1 - } - # interface config_get value 'setup' 'interface' [ -n "${value}" ] && append PROGRAM "-i ${value}" @@ -99,25 +89,6 @@ do_etherwake() } -# find first available program from searchlist -search_program() -{ - local searchlist="$1" - local test='' - local program='' - - for test in ${searchlist} ; do - [ -x "${test}" ] && { - program="${test}" - break; - } - done - - [ -n "${program}" ] && echo "${program}" - - return -} - # prepare hex password etherwake_password() {