Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147978889
D14439.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
657 B
Referenced Files
None
Subscribers
None
D14439.diff
View Options
Index: head/stand/lua/loader.lua
===================================================================
--- head/stand/lua/loader.lua
+++ head/stand/lua/loader.lua
@@ -30,6 +30,13 @@
local config = require("config")
local menu = require("menu")
local password = require("password")
+local local_module
+
+local result, errstr, errnoval = lfs.attributes("/boot/lua/local.lua")
+-- Effectively discard any errors; we'll just act if it succeeds.
+if result ~= nil then
+ local_module = require("local")
+end
-- Declares a global function cli_execute that attempts to dispatch the
-- arguments passed as a lua function. This gives lua a chance to intercept
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 15, 11:44 PM (9 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29742097
Default Alt Text
D14439.diff (657 B)
Attached To
Mode
D14439: [RFC] stand/lua: Bring in local.lua module if it exists
Attached
Detach File
Event Timeline
Log In to Comment