Z1maV1

startup

May 14th, 2022 (edited)
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. term.clear()
  4. term.setCursorPos(1,1)
  5.  
  6. if fs.exists("/install") then
  7.     shell.run("delete", "/install")
  8. end
  9. if fs.exists("/cancel") then
  10.     shell.run("delete", "/cancel")
  11. end
  12. if fs.exists("/.deletetemp") then
  13.     shell.run("delete", "/.deletetemp")
  14. end
  15. shell.run("cp", "/disk/temp/install.lua", "/install")
  16. shell.run("cp", "/disk/temp/cancel.lua", "/cancel")
  17. shell.run("cp", "/disk/temp/.deletetemp.lua", "/.deletetemp")
  18.  
  19. write("Welcome to ")
  20. term.setTextColor(colors.cyan)
  21. write("Diamond OS 1.2.1 ")
  22. term.setTextColor(colors.white)
  23. print("installer!")
  24. write("To install type ")
  25. term.setTextColor(colors.green)
  26. print("'install'")
  27. term.setTextColor(colors.white)
  28. write("To cancel installation type ")
  29. term.setTextColor(colors.red)
  30. print("'cancel'")
  31. term.setTextColor(colors.white)
Advertisement
Add Comment
Please, Sign In to add comment