Skip to content

Commit

Permalink
bat_links_info_ref: adds data type registration
Browse files Browse the repository at this point in the history
  • Loading branch information
javierajorge committed May 12, 2024
1 parent 1f72404 commit ccfd634
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit ccfd634

Please sign in to comment.