From 8c4102eaef9165dbbf13fa5576acdb593e46c19a Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 2 Mar 2022 11:26:24 +0300 Subject: [PATCH] openwrt: reload only on ifup/ifdown --- init.d/openwrt/90-zapret | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/openwrt/90-zapret b/init.d/openwrt/90-zapret index 2cf1811..a7fee78 100644 --- a/init.d/openwrt/90-zapret +++ b/init.d/openwrt/90-zapret @@ -23,7 +23,7 @@ check_need_to_reload_tpws6() } -[ -n "$INTERFACE" -a -n "$ACTION" -a -x "$ZAPRET" ] && "$ZAPRET" enabled && { +[ -n "$INTERFACE" ] && [ "$ACTION" = ifup -o "$ACTION" = ifdown ] && [ -x "$ZAPRET" ] && "$ZAPRET" enabled && { SCRIPT=$(readlink "$ZAPRET") if [ -n "$SCRIPT" ]; then EXEDIR=$(dirname "$SCRIPT")