Skip to content
Snippets Groups Projects
Commit 07440a93 authored by Karsten Böddeker's avatar Karsten Böddeker Committed by Michael Schwarz
Browse files

ffho-config-mode-geo-location: Delete Altitude if exists

parent 206e9ced
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/lua
local uci = require('luci.model.uci').cursor()
local sname = uci:get_first("gluon-node-info", "location")
local altitude = uci:get("gluon-node-info", sname, "altitude")
if altitude ~= nil then
uci:delete("gluon-node-info", sname, "altitude")
uci:save("gluon-node-info")
uci:commit("gluon-node-info")
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment