]]--
module("luci.config",
- function(m)
- setmetatable(m, {__index = require("luci.model.uci").get_all("luci")})
- end)
\ No newline at end of file
+ function(m)
+ if pcall(require, "luci.model.uci") then
+ setmetatable(m, {__index = luci.model.uci.cursor():get_all("luci")})
+ end
+ end)
\ No newline at end of file