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.
- Loading branch information
1 parent
991fa73
commit f4d2124
Showing
1 changed file
with
2 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/lua | ||
|
||
--! LibreMesh | ||
--! Will publish all refference data_type at once | ||
--! Copyright (C) 2024 Javier Jorge | ||
--! Copyright (C) 2024 Asociación Civil Altermundi <[email protected]> | ||
--! SPDX-License-Identifier: AGPL-3.0-only | ||
|
@@ -9,9 +10,8 @@ local JSON = require("luci.jsonc") | |
local utils = require "lime.utils" | ||
local fs = require("nixio.fs") | ||
|
||
|
||
local ref_file_folder = "/etc/shared-state/ref_state/" | ||
--get data_type from publisher | ||
--get data_type from file name | ||
for data_type in fs.dir(ref_file_folder) do | ||
local path = ref_file_folder .. data_type | ||
local result = { [utils.hostname()] = utils.read_file(path .. data_type) } | ||
|