From 3b61dbc20f8e2372a5676a9748c3e8549839a243 Mon Sep 17 00:00:00 2001 From: bolvan Date: Tue, 14 May 2019 21:18:25 +0300 Subject: [PATCH] openwrt hotplug : start zapret on lan ifup only if zapret is enabled --- init.d/openwrt/90-zapret | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.d/openwrt/90-zapret b/init.d/openwrt/90-zapret index 62ce5ee..44384f7 100644 --- a/init.d/openwrt/90-zapret +++ b/init.d/openwrt/90-zapret @@ -2,5 +2,7 @@ ZAPRET=/etc/init.d/zapret [ -x "$ZAPRET" ] && [ "$INTERFACE" = "lan" ] && { - [ "$ACTION" = "ifup" ] && $ZAPRET start + [ "$ACTION" = "ifup" ] && { + $ZAPRET enabled && $ZAPRET start + } }