Il sito funziona meglio con JavaScript.
Home
Esplora
lain.church
Aiuto
Registrati
Accedi
izaya
/
OC-PsychOS2
mirror da
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Segui
1
Vota
1
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
service/tape-iofs.lua
added a service to make an iofs node for each tape drive attached to the system, as /iofs/tapeN
pull/1/head
XeonSquared
4 anni fa
parent
8e3ee7bcb2
commit
77ceb65be6
1 ha cambiato i file
con
8 aggiunte
e
0 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
service/tape-iofs.lua
+ 8
- 0
service/tape-iofs.lua
Vedi File
@@ -0,0 +1,8 @@
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
Write
Preview
Loading…
Annulla
Salva