1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-11-27 12:48:07 +11:00
Zorya-NEO/util/OpenOS/config.d/01_openos.lua

12 lines
355 B
Lua
Raw Normal View History

2020-03-20 07:50:37 +11:00
local cfgadd = ...
local comp = require("component")
for fs in comp.list("filesystem") do
if comp.invoke(fs, "getLabel") == "OpenOS" and comp.invoke(fs, "exists", "init.lua") then
print("OpenOS discovered on "..fs)
cfgadd(string.format([[
menu.add("OpenOS on %s", function()
return loadmod("loader_openos")("%s")
end)
]], fs:sub(1, 3), fs))
end
end