You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
271 B

  1. #!/bin/sh
  2. #
  3. ban_pidfile="/var/run/banip.pid"
  4. ban_enabled="$(/etc/init.d/banip enabled; printf "%u" "${?}")"
  5. if [ "${ban_enabled}" = "1" ] || [ ! -f "${ban_pidfile}" ] || [ -s "${ban_pidfile}" ] || [ "${ACTION}" != "add" ]
  6. then
  7. exit 0
  8. else
  9. /etc/init.d/banip refresh
  10. fi