From ccfd634fc0469d6062b3a82beb3b351bab3aed88 Mon Sep 17 00:00:00 2001 From: "javier.jorge" Date: Sun, 12 May 2024 11:25:25 -0300 Subject: [PATCH] bat_links_info_ref: adds data type registration --- .../etc/uci-defaults/shared-state_bat_links_info_cron | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info_cron b/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info_cron index e31bbaf38..e2aa8467c 100755 --- a/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info_cron +++ b/packages/shared-state-bat_links_info/files/etc/uci-defaults/shared-state_bat_links_info_cron @@ -4,10 +4,17 @@ unique_append() { grep -qF "$1" "$2" || echo "$1" >> "$2" } - +## information generator datatype uci set shared-state.bat_links_info=dataType uci set shared-state.bat_links_info.name='bat_links_info' uci set shared-state.bat_links_info.scope='community' uci set shared-state.bat_links_info.ttl='2400' uci set shared-state.bat_links_info.update_interval='30' uci commit shared-state + +## Refference state data type +uci set shared-state.bat_links_info_ref=dataType +uci set shared-state.bat_links_info_ref.name='bat_links_info_ref' +uci set shared-state.bat_links_info_ref.scope='community' +uci set shared-state.bat_links_info_ref.ttl='2400' +uci set shared-state.bat_links_info_ref.update_interval='50'