Operating system for OpenComputers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
513B

  1. os.spawn(function() print(pcall(function()
  2. print(_OSVERSION,tostring(math.floor(computer.totalMemory()/1024)).."K memory")
  3. local f = fs.open("/boot/init.txt","rb")
  4. local fc = f:read("*a")
  5. f:close()
  6. for line in fc:gmatch("[^\n]+") do
  7. print("Starting service "..line)
  8. spawnfile("/boot/service/"..line)
  9. end
  10. for k,v in pairs(fd) do
  11. if v.t == "t" then
  12. tTasks[cPid].t = k
  13. print("Spawning a shell for terminal #"..tostring(k))
  14. spawnfile("/boot/exec/shell.lua","shell #"..tostring(k))
  15. end
  16. end
  17. end)) end,"init")