do local addr,invoke=computer.getBootAddress(),component.invoke local function loadfile(file) local handle=assert(invoke(addr,"open",file)) local buffer,n={},0 repeat local data=invoke(addr,"read",handle,math.maxinteger or math.huge) n=n+1 buffer[n]=data until not data invoke(addr,"close",handle) return load(table.concat(buffer),"="..file,"bt",_G) end loadfile("/lib/core/boot.lua")(loadfile) end do local f=loadfile("/lib/yaru/autostart.lua") if f then f()end end while true do local result,reason=xpcall(require("shell").getShell(),function(msg) return tostring(msg).."\n"..debug.traceback() end) if not result then io.stderr:write((reason~=nil and tostring(reason)or"unknown error").."\n") io.write("Press any key to continue.\n") os.sleep(0.5) require("event").pull("key") end end