periodicstats: 1.1.1

This commit is contained in:
vdutta 2022-05-10 20:03:12 +05:30
parent 3d2b69bd33
commit 5764f7dd1d
2 changed files with 9 additions and 6 deletions

View file

@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=periodicstats
PKG_VERSION:=1.1.0
PKG_VERSION:=1.1.1
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=7426c7458f792cc66920c206d62869c5620f1400
PKG_SOURCE_VERSION:=2779815d2b87e5966e27cfafe88070d0a8970a25
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/periodicstats.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
@ -35,7 +35,7 @@ endef
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) -rf ./periodicstats/* $(PKG_BUILD_DIR)/
$(CP) -rf ~/git/periodicstats/* $(PKG_BUILD_DIR)/
endef
endif

View file

@ -11,9 +11,12 @@ service_running() {
}
start_service() {
enable=$(uci -q get periodicstats.globals.enable)
local enable
if [ "$(enable)" != "1" ]; then
config_load periodicstats
config_get_bool enable globals enable 1
if [ "${enable}" -ne "1" ]; then
return 0;
fi
@ -24,7 +27,7 @@ start_service() {
}
service_triggers() {
procd_add_reload_trigger periodicstats uspd
procd_add_reload_trigger periodicstats
}
reload_service() {