api: add first_boot field to indicate if this node has been configured or not (#416)

This commit is contained in:
dman776 2019-05-11 12:08:37 -05:00 committed by GitHub
parent 956639345f
commit b0bc20b392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -49,6 +49,14 @@ require("iwinfo")
-------------------------------------
local model = {}
-------------------------------------
-- Get FIRST_BOOT status
-------------------------------------
function model.getFirstBoot()
return (model.getNodeName()=="NOCALL")
end
-------------------------------------
-- Returns WAN Address
-------------------------------------

View File

@ -60,6 +60,7 @@ function getSysinfo()
--
info['uptime']=aredn_info.getUptime()
info['loads']=aredn_info.getLoads()
info['first_boot']=aredn_info.getFirstBoot()
return info
end