diff --git a/open-app-filter/Makefile b/open-app-filter/Makefile index bb8900c..3d69fb0 100755 --- a/open-app-filter/Makefile +++ b/open-app-filter/Makefile @@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=appfilter PKG_VERSION:=5.0.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk diff --git a/open-app-filter/files/appfilter.init b/open-app-filter/files/appfilter.init index 7d458fc..021fb59 100755 --- a/open-app-filter/files/appfilter.init +++ b/open-app-filter/files/appfilter.init @@ -12,13 +12,15 @@ service_triggers() procd_add_reload_trigger "appfilter" } -stop_service(){ +service_stopped(){ 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 @@ -41,3 +43,7 @@ start_service(){ procd_set_param command "$OAFD_BIN" procd_close_instance } + +service_started() { + [ "x`uci get appfilter.global.enable`" != "x1" ] && rmmod oaf +}