diff options
author | Steven Barth <steven@midlink.org> | 2009-05-23 17:21:36 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-05-23 17:21:36 +0000 |
commit | 8c4f847ea5b95aaf0e716beaf736b4e2b67655ae (patch) | |
tree | 5b931064a2df45c3903b66b425f49b621e9c31df /build | |
parent | 0ad58e38b42dca2f46bc492b7f889b5031a9c6a1 (diff) |
GSoC Commit #1: LuCId + HTTP-Server
Diffstat (limited to 'build')
-rw-r--r-- | build/module.mk | 3 | ||||
-rw-r--r-- | build/setup.lua | 11 |
2 files changed, 11 insertions, 3 deletions
diff --git a/build/module.mk b/build/module.mk index ecc7a92f2..569de101d 100644 --- a/build/module.mk +++ b/build/module.mk @@ -38,9 +38,6 @@ luastrip: luasource luacompile: luasource for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done -luagzip: luacompile - for i in $$(find dist -name *.lua -not -name debug.lua); do gzip -f9 $$i; done - luaclean: rm -rf dist diff --git a/build/setup.lua b/build/setup.lua new file mode 100644 index 000000000..dbe9bdcc9 --- /dev/null +++ b/build/setup.lua @@ -0,0 +1,11 @@ + local SYSROOT = os.getenv("LUCI_SYSROOT") + require "uci" + require "luci.model.uci".cursor = function(config, save) + return uci.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci") + end + + local x = require "luci.uvl".UVL.__init__ + require "luci.uvl".UVL.__init__ = function(self, schemedir) + x(self, schemedir or SYSROOT .. "/lib/uci/schema") + end + |