Browse Source

banip: bugfix

* fix a stale pid file during package update

Signed-off-by: Dirk Brenken <dev@brenken.org>
lilik-openwrt-22.03
Dirk Brenken 4 years ago
parent
commit
e461c5e88c
No known key found for this signature in database GPG Key ID: 9D71CD547BFAE684
2 changed files with 4 additions and 3 deletions
  1. +1
    -1
      net/banip/Makefile
  2. +3
    -2
      net/banip/files/banip.sh

+ 1
- 1
net/banip/Makefile View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=banip
PKG_VERSION:=0.7.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>


+ 3
- 2
net/banip/files/banip.sh View File

@ -93,6 +93,7 @@ f_load()
f_ipset "destroy"
f_jsnup "disabled"
f_rmbckp
f_rmtmp
f_log "info" "banIP is currently disabled, please set the config option 'ban_enabled' to '1' to use this service"
exit 0
fi
@ -112,12 +113,12 @@ f_dir()
mkdir -p "${dir}"
if [ "${?}" = "0" ]
then
f_log "info" "directory '${dir}' created"
f_log "debug" "directory '${dir}' created"
else
f_log "err" "directory '${dir}' could not be created"
fi
else
f_log "info" "directory '${dir}' is used"
f_log "debug" "directory '${dir}' is used"
fi
}


Loading…
Cancel
Save