diff options
author | Steven Barth <steven@midlink.org> | 2008-08-26 23:00:44 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-26 23:00:44 +0000 |
commit | 91ba7c42f5b45614c9f4c803d09399f08a8e27b1 (patch) | |
tree | 21d1e1d67b3bee82eb123c0c5dbb274f2fcb6b59 /libs/sgi-webuci | |
parent | 43b3217e5595acc91ff6d7614a5c21c88696fbcc (diff) |
UCI API changes
Diffstat (limited to 'libs/sgi-webuci')
-rw-r--r-- | libs/sgi-webuci/root/usr/lib/boa/luci.lua | 6 |
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 d0f4323c3..c7ac16845 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 |