mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-30 01:32:26 +00:00
add FCC restriction support
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -4,6 +4,8 @@ let uci = require("uci");
|
||||
let ubus = require("ubus");
|
||||
let capabfile = fs.open("/etc/ucentral/capabilities.json", "r");
|
||||
let capab = json(capabfile.read("all"));
|
||||
let restrictfile = fs.open("/etc/ucentral/restrictions.json", "r");
|
||||
let restrict = restrictfile ? json(restrictfile.read("all")) : null;
|
||||
let cmdfile = fs.open(ARGV[0], "r");
|
||||
let cmd = json(cmdfile.read("all"));
|
||||
let id = ARGV[1];
|
||||
@@ -50,6 +52,7 @@ let scope = {
|
||||
cursor: uci.cursor(),
|
||||
ctx,
|
||||
fs,
|
||||
restrict,
|
||||
|
||||
/* log helper */
|
||||
log,
|
||||
|
||||
Reference in New Issue
Block a user