neonucleus/data/OpenOS/boot/10_devfs.lua
IonutParau 687cfebd00 testing version of LuaBIOS and OpenOS
people were having issues getting them to work so now we promote consistency
2025-06-28 20:41:49 +02:00

24 lines
438 B
Lua

require("filesystem").mount(
setmetatable({
address = "f5501a9b-9c23-1e7a-4afe-4b65eed9b88a"
},
{
__index=function(tbl,key)
local result =
({
getLabel = "devfs",
spaceTotal = 0,
spaceUsed = 0,
isReadOnly = false,
})[key]
if result ~= nil then
return function() return result end
end
local lib = require("devfs")
lib.register(tbl)
return lib.proxy[key]
end
}), "/dev")