forked from libremesh/lime-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:javierbrk/lime-packages into babe…
…lnodes
- Loading branch information
Showing
5 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/lime-app/files/etc/uci-defaults/shared-state-reference_state_nodes_info_cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
unique_append() | ||
{ | ||
grep -qF "$1" "$2" || echo "$1" >> "$2" | ||
} | ||
|
||
unique_append \ | ||
'*/5 * * * * ((sleep $(($RANDOM % 120)); shared-state-multiwriter sync reference_state_nodes_info &> /dev/null)&)'\ | ||
/etc/crontabs/root |
10 changes: 10 additions & 0 deletions
10
packages/lime-app/files/etc/uci-defaults/shared-state-reference_state_wifi_links_info_cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
unique_append() | ||
{ | ||
grep -qF "$1" "$2" || echo "$1" >> "$2" | ||
} | ||
|
||
unique_append \ | ||
'*/5 * * * * ((sleep $(($RANDOM % 120)); shared-state-multiwriter sync reference_state_wifi_links_info &> /dev/null)&)'\ | ||
/etc/crontabs/root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
# | ||
# Copyright (C) 2020 German Ferrero <germanferrero@altermundi.net> | ||
# Copyright (C) 2020-2023 Asociacion Civil Altermundi <info@altermundi.net> | ||
# | ||
# This is free software, licensed under the GNU General Public License v3. | ||
# This is free software, licensed under the GNU Affero General Public License v3. | ||
# | ||
|
||
include ../../libremesh.mk | ||
|
||
define Package/$(PKG_NAME) | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
TITLE:=$(PKG_NAME) provides shared state database of all times network nodes | ||
MAINTAINER:=Germán Ferrero <[email protected]> | ||
CATEGORY:=LibreMesh | ||
TITLE:=$(PKG_NAME) provides data-type for network nodes marked as reliable by user | ||
MAINTAINER:=Asociacion Civil Altermundi <[email protected]> | ||
DEPENDS:=+shared-state +shared-state-nodes_and_links +lime-system +luci-lib-jsonc \ | ||
+libubus-lua +random-numgen | ||
PKGARCH:=all | ||
endef | ||
|
||
define Package/$(PKG_NAME)/description | ||
This $(PKG_NAME) provides shared state database of all times network nodes. | ||
Provides data-type for network nodes marked as reliable by user via lime-app | ||
endef | ||
|
||
$(eval $(call BuildPackage,$(PKG_NAME))) |