mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2024-11-14 22:38:07 +11:00
13 lines
369 B
Lua
13 lines
369 B
Lua
local cfgadd = ...
|
|
local component = require("component")
|
|
for fs in component.list("filesystem") do
|
|
if component.invoke(fs, "exists", "/boot/cynosure.lua") then
|
|
print("Cynosure kernel discovered on " .. fs)
|
|
cfgadd(string.format([[
|
|
menu.add("Cynosure kernel on %s", function()
|
|
return loadmod("loader_cynosure")("%s")
|
|
end)
|
|
]], fs:sub(1,3), fs))
|
|
end
|
|
end
|