etherwake: remove redundant 'pathes' option
authorGeorgios Kontaxis <redacted>
Sun, 21 Jun 2026 17:26:23 +0000 (17:26 +0000)
committerGeorgios Kontaxis <redacted>
Sun, 21 Jun 2026 20:20:57 +0000 (20:20 +0000)
Signed-off-by: Georgios Kontaxis <redacted>
net/etherwake/files/etherwake.config
net/etherwake/files/etherwake.init

index 626011bdc062b5002d57ba529d6b37a45e80911f..f55bf8a41bd37728d3b83caf929f04e56cf4bb55 100644 (file)
@@ -1,6 +1,4 @@
 config 'etherwake' 'setup'
-       # possible program paths
-       option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake'
        # interface, defaults to 'eth0'
        # -i <ifname>
        option 'interface' ''
index bc2963c16f305d63aa769c8ce066c7950f4aa914..f267796093ded2202ca6955921f23e09ebe40538 100644 (file)
@@ -3,7 +3,7 @@
 
 NAME='etherwake'
 START=60
-PROGRAM=''
+PROGRAM='/usr/bin/etherwake'
 
 start()
 {
@@ -13,14 +13,6 @@ start()
 
        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 +91,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()
 {
git clone https://git.99rst.org/PROJECT