summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-06 10:56:04 +0000
committerSteven Barth <steven@midlink.org>2008-07-06 10:56:04 +0000
commit740a341b04289038ec123c25d6f5b91cc1c5de6f (patch)
treec397170f7fe1c158d994b79fbd1930b3ed71b8e5 /libs
parent98b1e8199f1ba9e8e8b43e1a4b1ed26e5e0f145b (diff)
* libs/uci: Added function get_statevalue
Diffstat (limited to 'libs')
-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 6662943cf5..e8700efdcc 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