- #!/bin/sh
- # firewall hotplug script for banIP
- # Copyright (c) 2019-2021 Dirk Brenken (dev@brenken.org)
- # This is free software, licensed under the GNU General Public License v3.
-
- if /etc/init.d/banip enabled && [ "${ACTION}" = "add" ] && [ -n "${INTERFACE}" ]; then
- if [ ! -s "/var/run/banip.pid" ] && uci_get banip global ban_ifaces | grep -q "${INTERFACE}"; then
- /etc/init.d/banip refresh
- fi
- fi
|