GSoC Commit #1: LuCId + HTTP-Server
[project/luci.git] / build / setup.lua
1 local SYSROOT = os.getenv("LUCI_SYSROOT")
2 require "uci"
3 require "luci.model.uci".cursor = function(config, save)
4 return uci.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
5 end
6
7 local x = require "luci.uvl".UVL.__init__
8 require "luci.uvl".UVL.__init__ = function(self, schemedir)
9 x(self, schemedir or SYSROOT .. "/lib/uci/schema")
10 end
11