packages/net/fail2ban/files/firewall.fail2ban
Vladislav Grigoryev 57aab9f1d1 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>
2021-09-10 11:23:17 -04:00

3 lines
78 B
Bash

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