openwrt init.d: remove command not found error

This commit is contained in:
bol-van 2024-10-03 08:39:48 +03:00
parent 9d797f3dbc
commit 88a9f16b8a

View File

@ -185,7 +185,8 @@ start_daemons()
}
stop_daemons()
{
procd_kill "$(basename ${basescript:-$initscript})" "$1"
local svc="$(basename ${basescript:-$initscript})"
procd_running "$svc" "$1" && procd_kill "$svc" "$1"
}
restart_daemons()
{