From 75fa4cd2c9be44afbb5d7485e8a039edfd16a37c Mon Sep 17 00:00:00 2001 From: yyashvardhan Date: Mon, 24 Jun 2019 19:40:53 +0530 Subject: [PATCH] uspd: Added support for granular ubus objects --- uspd/Makefile | 6 ++++-- uspd/files/uspd.config | 2 ++ uspd/files/uspd.init | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 uspd/files/uspd.config diff --git a/uspd/Makefile b/uspd/Makefile index 233d4537f..b8170130f 100644 --- a/uspd/Makefile +++ b/uspd/Makefile @@ -5,10 +5,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uspd -PKG_VERSION:=1.0.2 +PKG_VERSION:=1.0.3 PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=7066e674e89ec34aad30a99e56c56756669d55ee +PKG_SOURCE_VERSION:=f033acb40afd9b087587d3cfba292e1d884600d6 PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/uspd.git PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz @@ -38,7 +38,9 @@ TARGET_CFLAGS += \ define Package/uspd/install $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_DIR) $(1)/etc/config $(INSTALL_BIN) ./files/uspd.init $(1)/etc/init.d/uspd + $(INSTALL_CONF) ./files/uspd.config $(1)/etc/config/uspd $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/uspd $(1)/usr/sbin/ endef diff --git a/uspd/files/uspd.config b/uspd/files/uspd.config new file mode 100644 index 000000000..d8b3621c1 --- /dev/null +++ b/uspd/files/uspd.config @@ -0,0 +1,2 @@ +config uspd 'usp' + option granularitylevel '0' diff --git a/uspd/files/uspd.init b/uspd/files/uspd.init index 6242549b2..2f7889768 100644 --- a/uspd/files/uspd.init +++ b/uspd/files/uspd.init @@ -21,4 +21,5 @@ reload_service() { service_triggers() { procd_add_reload_trigger "cwmp" + procd_add_config_trigger "config.change" "uspd" /etc/init.d/uspd restart }