summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-lua-runtime
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-09-19 14:18:27 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-25 01:03:37 +0200
commit18ee34def2805ea2d8f3ca34e2dfed219000399c (patch)
tree9b6fef959c7d6baeb372a577ddfab2e5c1b5e3c8 /modules/luci-lua-runtime
parent6b1be72a1eff2c5b31aec581d0a94f395f78cc2c (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-lua-runtime')
-rw-r--r--modules/luci-lua-runtime/luasrc/ucodebridge.lua1
1 files changed, 1 insertions, 0 deletions
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.