Reload configuration at boot, modify app version to 5.0.1

This commit is contained in:
Derry 2021-03-20 09:26:06 -07:00
parent e1b21d21e7
commit e73beb8c97
3 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=Open App Filter Module
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+kmod-oaf +appfilter
PKG_NAME:=luci-app-oaf
PKG_VERSION:=3.0
PKG_VERSION:=5.0
PKG_RELEASE:=1
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=oaf
PKG_VERSION:=3.0
PKG_VERSION:=5.0
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk

View File

@ -12,12 +12,13 @@ service_triggers()
}
stop_service(){
killall -9 $OAFD_BIN
killall -9 oafd
}
start_service(){
gen_class.sh /etc/appfilter/feature.cfg
insmod oaf
/usr/bin/oaf_rule reload
procd_open_instance
procd_set_param respawn 60 5 5
procd_set_param stderr 1