From: Jo-Philipp Wich Date: Mon, 19 Sep 2022 12:18:27 +0000 (+0200) Subject: luci-lua-runtime: preload luci.sys X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=18ee34def2805ea2d8f3ca34e2dfed219000399c;p=project%2Fluci.git luci-lua-runtime: preload luci.sys Some existing model code expects the luci.sys namespace to be implicitly available, even without requiring it beforehand. Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-lua-runtime/luasrc/ucodebridge.lua b/modules/luci-lua-runtime/luasrc/ucodebridge.lua index fa4943dc99..984fb0f7f2 100644 --- a/modules/luci-lua-runtime/luasrc/ucodebridge.lua +++ b/modules/luci-lua-runtime/luasrc/ucodebridge.lua @@ -5,6 +5,7 @@ local coroutine, assert, error, type, require = coroutine, assert, error, type, local tmpl = require "luci.template" local util = require "luci.util" local http = require "luci.http" +local sys = require "luci.sys" --- LuCI ucode bridge library.