projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f03192
)
libs/uvl: Set an own savedir to avoid UCI problems
author
Steven Barth
<steven@midlink.org>
Thu, 28 Aug 2008 18:57:49 +0000
(18:57 +0000)
committer
Steven Barth
<steven@midlink.org>
Thu, 28 Aug 2008 18:57:49 +0000
(18:57 +0000)
libs/uvl/luasrc/uvl.lua
patch
|
blob
|
history
diff --git
a/libs/uvl/luasrc/uvl.lua
b/libs/uvl/luasrc/uvl.lua
index c0f09293f2df99cac79301051e03499e1df497f8..37e6b765d0e1fd358f78b243a21b51add5e4295f 100644
(file)
--- a/
libs/uvl/luasrc/uvl.lua
+++ b/
libs/uvl/luasrc/uvl.lua
@@
-55,6
+55,7
@@
STRICT_LIST_TYPE = true
local default_schemedir = "/lib/uci/schema"
+local default_savedir = "/tmp/.uvl"
local ERR = luci.uvl.errors
@@
-344,8
+345,7
@@
function UVL.read_scheme( self, scheme )
return so:error(ERR.SME_READ(so,file))
end
- local uci = luci.model.uci.cursor()
- uci:set_confdir( luci.fs.dirname(file) )
+ local uci = luci.model.uci.cursor( luci.fs.dirname(file), default_savedir )
local sd, err = uci:get_all( luci.fs.basename(file) )