mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2024-12-23 09:28:07 +11:00
Add monolith detection
This commit is contained in:
parent
722606b419
commit
813bf47319
12
util/OpenOS/config.d/05_monolith.lua
Normal file
12
util/OpenOS/config.d/05_monolith.lua
Normal file
@ -0,0 +1,12 @@
|
||||
local cfgadd = ...
|
||||
local component = require("component")
|
||||
for fs in component.list("filesystem") do
|
||||
if (component.invoke(fs, "getLabel") == "Monolith" or component.invoke(fs, "exists", "/boot/monolith")) and component.invoke(fs, "exists", "init.lua") then
|
||||
print("Monolith discovered on " .. fs)
|
||||
cfgadd(string.format([[
|
||||
menu.add("Monolith on %s", function()
|
||||
return loadmod("loader_monolith")("%s")
|
||||
end)
|
||||
]], fs:sub(1,3), fs))
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user