Skip to content

Commit

Permalink
f_mesh_up: rename uci default file
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrk committed Sep 9, 2024
1 parent 7d366fc commit a03cc22
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
#!/bin/sh

unique_append()
{
grep -qF "$1" "$2" || echo "$1" >> "$2"
}

uci set shared-state.mesh_wide_upgrade=dataType
uci set shared-state.mesh_wide_upgrade.name='mesh_wide_upgrade'
uci set shared-state.mesh_wide_upgrade.scope='community'
uci set shared-state.mesh_wide_upgrade.ttl='2400'
uci set shared-state.mesh_wide_upgrade.update_interval='30'
uci commit shared-state

unique_append \
'*/30 * * * * ((sleep $(($RANDOM % 120)); shared-state-publish_mesh_wide_upgrade &> /dev/null)&)' \
/etc/crontabs/root

0 comments on commit a03cc22

Please sign in to comment.