summaryrefslogtreecommitdiffhomepage
path: root/libs/uvl/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-28 18:57:49 +0000
committerSteven Barth <steven@midlink.org>2008-08-28 18:57:49 +0000
commit565bc6d4c2e73827d35f87a6237ad322f19065f2 (patch)
tree558d5d45f9a5a16a57c117ebee4c7c162b9b7ac7 /libs/uvl/luasrc
parent8f03192ce4b39906db82658b0543e237e2a757d2 (diff)
libs/uvl: Set an own savedir to avoid UCI problems
Diffstat (limited to 'libs/uvl/luasrc')
-rw-r--r--libs/uvl/luasrc/uvl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua
index c0f09293f..37e6b765d 100644
--- 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) )