summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/uci/luasrc/model/uci.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/uci/luasrc/model/uci.lua b/libs/uci/luasrc/model/uci.lua
index 6662943cf..e8700efdc 100644
--- a/libs/uci/luasrc/model/uci.lua
+++ b/libs/uci/luasrc/model/uci.lua
@@ -67,6 +67,13 @@ function section(config, type, name, values)
return stat and name
end
+function get_statevalue(...)
+ set_savedir(savedir_state)
+ local result = get(...)
+ set_savedir(savedir_default)
+ return result
+end
+
function tset(config, section, values)
local stat = true
for k, v in pairs(values) do