diff options
author | Steven Barth <steven@midlink.org> | 2008-07-06 10:56:04 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-06 10:56:04 +0000 |
commit | 740a341b04289038ec123c25d6f5b91cc1c5de6f (patch) | |
tree | c397170f7fe1c158d994b79fbd1930b3ed71b8e5 /libs/uci | |
parent | 98b1e8199f1ba9e8e8b43e1a4b1ed26e5e0f145b (diff) |
* libs/uci: Added function get_statevalue
Diffstat (limited to 'libs/uci')
-rw-r--r-- | libs/uci/luasrc/model/uci.lua | 7 |
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 |