From 91ba7c42f5b45614c9f4c803d09399f08a8e27b1 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 26 Aug 2008 23:00:44 +0000 Subject: UCI API changes --- libs/sgi-webuci/root/usr/lib/boa/luci.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/sgi-webuci/root/usr/lib/boa') 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 -- cgit v1.2.3