1
1
зеркало из https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-09-20 11:03:06 -04:00

updated fsmanager to new service semantics

Этот коммит содержится в:
XeonSquared 2021-06-22 16:39:10 +10:00
родитель 6f1b673bec
Коммит 1ef6d5db96

Просмотреть файл

@ -1,3 +1,4 @@
local fsmanager = {}
local function mount(addr)
dest = component.invoke(addr,"getLabel") or "mnt/"..addr:sub(1,3)
dest = "/"..dest
@ -12,7 +13,7 @@ for addr, _ in component.list("filesystem") do
mount(addr)
end
function start()
function fsmanager.start()
return os.spawn(function()
while true do
local tE = {coroutine.yield()}
@ -24,3 +25,5 @@ function start()
end
end,"fsmanager")
end
return fsmanager