summaryrefslogtreecommitdiffhomepage
path: root/libs/sgi-webuci/root/usr/lib/boa
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-26 23:00:44 +0000
committerSteven Barth <steven@midlink.org>2008-08-26 23:00:44 +0000
commit91ba7c42f5b45614c9f4c803d09399f08a8e27b1 (patch)
tree21d1e1d67b3bee82eb123c0c5dbb274f2fcb6b59 /libs/sgi-webuci/root/usr/lib/boa
parent43b3217e5595acc91ff6d7614a5c21c88696fbcc (diff)
UCI API changes
Diffstat (limited to 'libs/sgi-webuci/root/usr/lib/boa')
-rw-r--r--libs/sgi-webuci/root/usr/lib/boa/luci.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/sgi-webuci/root/usr/lib/boa/luci.lua b/libs/sgi-webuci/root/usr/lib/boa/luci.lua
index d0f4323c34..c7ac168452 100644
--- a/libs/sgi-webuci/root/usr/lib/boa/luci.lua
+++ b/libs/sgi-webuci/root/usr/lib/boa/luci.lua
@@ -24,9 +24,9 @@ function init(path)
if (root ~= '/') then
-- Entering dummy mode
- luci.model.uci.confdir_default = root .. '/etc/config'
- luci.model.uci.savedir_state = root .. '/var/state'
- uci.set_confdir(luci.model.uci.confdir_default)
+ luci.model.uci.cursor = function(config, ...)
+ return uci.cursor(config or root .. "/etc/config", ...)
+ end
luci.sys.hostname = function() return "" end
luci.sys.loadavg = function() return 0,0,0,0,0 end