summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/host/runluci
diff options
context:
space:
mode:
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 5a7e8fd6f..f150cae8d 100755
--- a/libs/httpd/host/runluci
+++ b/libs/httpd/host/runluci
@@ -17,9 +17,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.cursor = function(config, ...)
- return uci.cursor(config or SYSROOT .. "/etc/config", ...)
+if pcall(require, "uci2") and pcall(require, "luci.model.uci") then
+ luci.model.uci.cursor = function(config, save)
+ return uci2.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
end
end