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>
3 lines
78 B
Bash
3 lines
78 B
Bash
#!/bin/sh
|
|
/etc/init.d/fail2ban enabled && /etc/init.d/fail2ban restart
|
|
exit 0
|