Revert "open-app-filter: auto unload kmod"

This reverts commit 6b80027765.
This commit is contained in:
sbwml 2023-07-03 11:38:10 +08:00
parent 6b80027765
commit 86819adf6d
2 changed files with 2 additions and 8 deletions

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=appfilter
PKG_VERSION:=5.0.2
PKG_RELEASE:=2
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk

View File

@ -12,15 +12,13 @@ service_triggers()
procd_add_reload_trigger "appfilter"
}
service_stopped(){
stop_service(){
killall -9 oafd
rmmod oaf
}
start_service(){
local update
[ "x`uci get appfilter.global.enable`" = "x1" ] || return 0
rm $FEATURE_FILE
update=`uci get appfilter.feature.update`
if [ x"1" == x"$update" ];then
@ -43,7 +41,3 @@ start_service(){
procd_set_param command "$OAFD_BIN"
procd_close_instance
}
service_started() {
[ "x`uci get appfilter.global.enable`" != "x1" ] && rmmod oaf
}