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/httpd/host/runluci | |
parent | 43b3217e5595acc91ff6d7614a5c21c88696fbcc (diff) |
UCI API changes
Diffstat (limited to 'libs/httpd/host/runluci')
-rwxr-xr-x | libs/httpd/host/runluci | 6 |
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") |