RPC initial authentication API completed
[oweals/luci.git] / libs / web / luasrc / config.lua
index 557303f88d61eaebbabd8283afaff20e8c4961de..72bd5aa924c5545cade8f7d6a4c267d4160b5cb0 100644 (file)
@@ -27,5 +27,7 @@ limitations under the License.
 
 module("luci.config",
        function(m)
-               setmetatable(m, {__index = require("luci.model.uci").get_all("luci")})
+               if pcall(require, "luci.model.uci") then
+                       setmetatable(m, {__index = luci.model.uci.get_all("luci")})
+               end
        end)
\ No newline at end of file