projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b1be72
)
luci-lua-runtime: preload luci.sys
author
Jo-Philipp Wich
<jo@mein.io>
Mon, 19 Sep 2022 12:18:27 +0000
(14:18 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Mon, 24 Oct 2022 23:03:37 +0000
(
01:03
+0200)
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>
modules/luci-lua-runtime/luasrc/ucodebridge.lua
patch
|
blob
|
history
diff --git
a/modules/luci-lua-runtime/luasrc/ucodebridge.lua
b/modules/luci-lua-runtime/luasrc/ucodebridge.lua
index fa4943dc990dedb77f332c3b4dd844d734d6e8c4..984fb0f7f2a715a96ae5a75ec314ec4e67282e9b 100644
(file)
--- 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.