mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-15 17:18:08 -05:00
77ceb65be6
added a service to make an iofs node for each tape drive attached to the system, as /iofs/tapeN
9 lines
242 B
Lua
9 lines
242 B
Lua
local counter = 0
|
|
for addr in component.list("tape_drive") do
|
|
iofs.register("tape"..tonumber(counter),function()
|
|
local tape = component.proxy(addr)
|
|
return tape.read, tape.write, function() end, tape.seek
|
|
end)
|
|
counter = counter + 1
|
|
end
|