diff --git a/util/OpenOS/config.d/06_cynosure.lua b/util/OpenOS/config.d/06_cynosure.lua new file mode 100644 index 0000000..92f8a3a --- /dev/null +++ b/util/OpenOS/config.d/06_cynosure.lua @@ -0,0 +1,12 @@ +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