Handles save/discard nEdge config

This commit is contained in:
Simone Mainardi 2017-12-18 15:42:10 +01:00
parent 8694cdfbb2
commit 3c83a73602
3 changed files with 21 additions and 0 deletions

View file

@ -2583,6 +2583,16 @@ function get_manufacturer_mac(mac_address)
return ret
end
function file_exists(name)
local f = io.open(name,"r")
if f ~= nil then io.close(f)
return true
end
return false
end
-- rrd_exists
function rrd_exists(host_ip, rrdname)
if(host_ip == nil) then return false end