mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 11:02:12 +08:00

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