mirror of https://github.com/aredn/aredn.git
api: add first_boot field to indicate if this node has been configured or not (#416)
This commit is contained in:
parent
956639345f
commit
b0bc20b392
|
@ -49,6 +49,14 @@ require("iwinfo")
|
|||
-------------------------------------
|
||||
local model = {}
|
||||
|
||||
|
||||
-------------------------------------
|
||||
-- Get FIRST_BOOT status
|
||||
-------------------------------------
|
||||
function model.getFirstBoot()
|
||||
return (model.getNodeName()=="NOCALL")
|
||||
end
|
||||
|
||||
-------------------------------------
|
||||
-- Returns WAN Address
|
||||
-------------------------------------
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue