From 207a6faf33781cf02849e84357ce7f6909ad2c55 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 9 Dec 2024 10:48:30 +0300 Subject: [PATCH] init.d: unify standard_mode_daemons --- init.d/openwrt/zapret | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret index 907f732..16b4e4b 100755 --- a/init.d/openwrt/zapret +++ b/init.d/openwrt/zapret @@ -128,6 +128,11 @@ do_nfqws() standard_mode_daemons() { + # $1 - 1 - run, 0 - stop + + # stop logic is managed by procd + [ "$1" = 0 ] && return 0 + local opt [ "$TPWS_ENABLE" = 1 ] && check_bad_ws_options 1 "$TPWS_OPT" && { opt="--port=$TPPORT $TPWS_OPT" @@ -148,7 +153,7 @@ standard_mode_daemons() start_daemons_procd() { - standard_mode_daemons + standard_mode_daemons 1 custom_runner zapret_custom_daemons 1 return 0