summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/host/runluci
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/httpd/host/runluci
parent43b3217e5595acc91ff6d7614a5c21c88696fbcc (diff)
UCI API changes
Diffstat (limited to 'libs/httpd/host/runluci')
-rwxr-xr-xlibs/httpd/host/runluci6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/httpd/host/runluci b/libs/httpd/host/runluci
index d31b3f79c..5a7e8fd6f 100755
--- a/libs/httpd/host/runluci
+++ b/libs/httpd/host/runluci
@@ -18,9 +18,9 @@ vhost = luci.httpd.server.VHost()
server:set_default_vhost(vhost)
if pcall(require, "uci") and pcall(require, "luci.model.uci") then
- luci.model.uci.confdir_default = SYSROOT .. luci.model.uci.confdir_default
- luci.model.uci.savedir_state = SYSROOT .. luci.model.uci.savedir_state
- luci.model.uci.set_confdir(luci.model.uci.confdir_default)
+ luci.model.uci.cursor = function(config, ...)
+ return uci.cursor(config or SYSROOT .. "/etc/config", ...)
+ end
end
require("luci.sys")