projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed reworked UCI API to uci2 to allow a peaceful coexistence with the old one
[project/luci.git]
/
libs
/
sgi-webuci
/
root
/
usr
/
lib
/
boa
/
luci.lua
diff --git
a/libs/sgi-webuci/root/usr/lib/boa/luci.lua
b/libs/sgi-webuci/root/usr/lib/boa/luci.lua
index
d0f4323
..
387d577
100644
(file)
--- 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
if (root ~= '/') then
-- Entering dummy mode
- luci.model.uci.c
onfdir_default = root .. '/etc/config'
- luci.model.uci.savedir_state = root .. '/var/state'
- uci.set_confdir(luci.model.uci.confdir_default)
+ luci.model.uci.c
ursor = function(config, ...)
+ return uci2.cursor(config or root .. "/etc/config", ...)
+ end
luci.sys.hostname = function() return "" end
luci.sys.loadavg = function() return 0,0,0,0,0 end
luci.sys.hostname = function() return "" end
luci.sys.loadavg = function() return 0,0,0,0,0 end