projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
themes: add cbi-button-download class, whitespace cleanup
[project/luci.git]
/
build
/
setup.lua
diff --git
a/build/setup.lua
b/build/setup.lua
index
d8fd5dd
..
f4ed769
100644
(file)
--- a/
build/setup.lua
+++ b/
build/setup.lua
@@
-15,17
+15,10
@@
end
uci_model.inst = uci_model.cursor()
uci_model.inst_state = uci_model.cursor_state()
uci_model.inst = uci_model.cursor()
uci_model.inst_state = uci_model.cursor_state()
--- override uvl access
-local uvl_model = require "luci.uvl"
-local uvl_init = uvl_model.UVL.__init__
-
-uvl_model.UVL.__init__ = function(self, schemedir)
- uvl_init(self, schemedir or SYSROOT .. "/lib/uci/schema")
-end
-
-- allow any password in local sdk
local sys = require "luci.sys"
sys.user.checkpasswd = function() return true end
-- allow any password in local sdk
local sys = require "luci.sys"
sys.user.checkpasswd = function() return true end
+sys.user.getpasswd = function() return "x" end
-- dummy sysinfo on Darwin
require "nixio"
-- dummy sysinfo on Darwin
require "nixio"
@@
-45,3
+38,9
@@
if not nixio.sysinfo then
}
end
end
}
end
end
+
+-- override nixio.fs.access() to check sysroot first
+local _access = nixio.fs.access
+function nixio.fs.access(file)
+ return _access(SYSROOT .. "/" .. file) or _access(file)
+end