From 57aab9f1d15fd694ffdf6a83d73d15497d1a5f08 Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Fri, 10 Sep 2021 17:10:04 +0300 Subject: [PATCH] fail2ban: fix hotplug when disabled Avoid restarting fail2ban by hotplug when the service is disabled. Related issue: https://github.com/openwrt/packages/issues/16601 Signed-off-by: Vladislav Grigoryev --- net/fail2ban/Makefile | 2 +- net/fail2ban/files/firewall.fail2ban | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/fail2ban/Makefile b/net/fail2ban/Makefile index 198814439..6f81556fe 100644 --- a/net/fail2ban/Makefile +++ b/net/fail2ban/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fail2ban PKG_VERSION:=0.11.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/fail2ban/fail2ban/tar.gz/$(PKG_VERSION)? diff --git a/net/fail2ban/files/firewall.fail2ban b/net/fail2ban/files/firewall.fail2ban index 99507dab1..4d2062fc2 100644 --- a/net/fail2ban/files/firewall.fail2ban +++ b/net/fail2ban/files/firewall.fail2ban @@ -1,3 +1,3 @@ #!/bin/sh -/etc/init.d/fail2ban restart +/etc/init.d/fail2ban enabled && /etc/init.d/fail2ban restart exit 0