packages/net/fail2ban/files/firewall.fail2ban
Vladislav Grigoryev 74081e2f3f 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 <vg.aetera@gmail.com>
2022-02-06 15:37:33 +00:00

4 lines
78 B
Bash

#!/bin/sh
/etc/init.d/fail2ban enabled && /etc/init.d/fail2ban restart
exit 0