From 18ee34def2805ea2d8f3ca34e2dfed219000399c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 19 Sep 2022 14:18:27 +0200 Subject: [PATCH] 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 --- modules/luci-lua-runtime/luasrc/ucodebridge.lua | 1 + 1 file changed, 1 insertion(+) 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.