mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
bbfdm: 1.12.17
- Improve bbf.config handler for external config change - Removed deprecated DeviceInfo.Processor. object
This commit is contained in:
parent
607f3c5334
commit
f9d3d22c14
2 changed files with 16 additions and 3 deletions
|
|
@ -5,13 +5,13 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=bbfdm
|
PKG_NAME:=bbfdm
|
||||||
PKG_VERSION:=1.12.16
|
PKG_VERSION:=1.12.17
|
||||||
|
|
||||||
USE_LOCAL:=0
|
USE_LOCAL:=0
|
||||||
ifneq ($(USE_LOCAL),1)
|
ifneq ($(USE_LOCAL),1)
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/bbfdm.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/bbfdm.git
|
||||||
PKG_SOURCE_VERSION:=cd7b465e9b2abecf6405e4f1ba95e64c78b23dcf
|
PKG_SOURCE_VERSION:=8e0bcca3aa8135a91a038cc463716a30e95d9b6d
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
PKG_MIRROR_HASH:=skip
|
PKG_MIRROR_HASH:=skip
|
||||||
endif
|
endif
|
||||||
|
|
@ -172,6 +172,8 @@ ifeq ($(CONFIG_BBF_CONFIGMNGR_C_BACKEND),y)
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/utilities/bbf_configd $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/utilities/bbf_configd $(1)/usr/sbin/
|
||||||
$(INSTALL_BIN) ./files/etc/init.d/bbf_configd $(1)/etc/init.d/bbf_configd
|
$(INSTALL_BIN) ./files/etc/init.d/bbf_configd $(1)/etc/init.d/bbf_configd
|
||||||
|
$(INSTALL_DIR) $(1)/usr/share/bbfdm/scripts
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/utilities/files/usr/share/bbfdm/scripts/bbf_config_notify.sh $(1)/usr/share/bbfdm/scripts/
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_BBF_CONFIGMNGR_SCRIPT_BACKEND),y)
|
ifeq ($(CONFIG_BBF_CONFIGMNGR_SCRIPT_BACKEND),y)
|
||||||
$(INSTALL_DIR) $(1)/usr/libexec/rpcd
|
$(INSTALL_DIR) $(1)/usr/libexec/rpcd
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@ STOP=10
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
PROG=/usr/sbin/bbf_configd
|
PROG=/usr/sbin/bbf_configd
|
||||||
|
|
||||||
|
log() {
|
||||||
|
echo "${@}"|logger -t bbf.config -p info
|
||||||
|
}
|
||||||
|
|
||||||
create_needed_directories()
|
create_needed_directories()
|
||||||
{
|
{
|
||||||
mkdir -p /tmp/bbfdm/.cwmp
|
mkdir -p /tmp/bbfdm/.cwmp
|
||||||
|
|
@ -19,7 +23,14 @@ start_service()
|
||||||
|
|
||||||
procd_open_instance "bbf_configd"
|
procd_open_instance "bbf_configd"
|
||||||
procd_set_param command ${PROG}
|
procd_set_param command ${PROG}
|
||||||
#procd_append_param command -d
|
#procd_append_param command -ddd
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
procd_close_instance "bbf_configd"
|
procd_close_instance "bbf_configd"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service_triggers() {
|
||||||
|
for config_file in /etc/config/*; do
|
||||||
|
config_name=$(basename "$config_file")
|
||||||
|
procd_add_config_trigger "config.change" "$config_name" /usr/share/bbfdm/scripts/bbf_config_notify.sh
|
||||||
|
done
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue