diff options
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 + |