From 001234bcd5725b8d3935d27355ca899eba788dab Mon Sep 17 00:00:00 2001 From: i develop things <50844998+Ocawesome101@users.noreply.github.com> Date: Fri, 3 Sep 2021 16:25:11 -0400 Subject: [PATCH] add cynosure detection --- util/OpenOS/config.d/06_cynosure.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 util/OpenOS/config.d/06_cynosure.lua 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