From 88a9f16b8ad997b8f9c6a05c16e13e343fa37dff Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 3 Oct 2024 08:39:48 +0300 Subject: [PATCH] openwrt init.d: remove command not found error --- init.d/openwrt/zapret | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret index 208dc67..46cd10b 100755 --- a/init.d/openwrt/zapret +++ b/init.d/openwrt/zapret @@ -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() {