From b79ae09cdfe95ca413dfdf29a636f9b93d08c6e0 Mon Sep 17 00:00:00 2001 From: Izaya Date: Sat, 31 Mar 2018 15:48:40 +1100 Subject: [PATCH] added a wrapper for OSes not directly supported --- Embedded/init-wrapper.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Embedded/init-wrapper.lua diff --git a/Embedded/init-wrapper.lua b/Embedded/init-wrapper.lua new file mode 100644 index 0000000..9fd943c --- /dev/null +++ b/Embedded/init-wrapper.lua @@ -0,0 +1,15 @@ +local c = "" +do +function net.hook.sender(et,packetID,packetType,to,vport,data) + if et == "net_send" then + net.send(packetID,packetType,to,vport,data) + end +end +local fs = component.proxy(computer.getBootAddress()) +local fh,b = fs.open("boot.lua"),"" +repeat + b=fs.read(fh,4096) or "" + c=c..b +until b == "" +end +load(c)()