From 5764f7dd1d28c7eed498505842a86f6f26eb3c78 Mon Sep 17 00:00:00 2001 From: vdutta Date: Tue, 10 May 2022 20:03:12 +0530 Subject: [PATCH] periodicstats: 1.1.1 --- periodicstats/Makefile | 6 +++--- periodicstats/files/etc/init.d/periodicstats | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/periodicstats/Makefile b/periodicstats/Makefile index e7b851958..aa1b44945 100644 --- a/periodicstats/Makefile +++ b/periodicstats/Makefile @@ -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 diff --git a/periodicstats/files/etc/init.d/periodicstats b/periodicstats/files/etc/init.d/periodicstats index 0d17fcc59..21873fcad 100755 --- a/periodicstats/files/etc/init.d/periodicstats +++ b/periodicstats/files/etc/init.d/periodicstats @@ -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() {