1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-15 14:58:06 +11:00
OC-Minitel/RPC/OpenOS/usr/bin/exportall.lua

13 lines
278 B
Lua
Raw Normal View History

local component = require "component"
local r2r = require "r2r"
local tA = {...}
for k,v in component.list() do
local px = component.proxy(component.get(k))
print(px.type.."_"..px.address)
for l,m in pairs(px) do
r2r.register(px.type.."_"..px.address.."_"..l,m)
end
end