Advertisement
leonardi

installer

Oct 11th, 2013
1,840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(16,4)
  3. term.setTextColor(colors.lime)
  4. print("PowerGrid Installer")
  5. term.setCursorPos(4,7)
  6. term.setTextColor(colors.lightBlue)
  7. print("Press Enter to Install the PowerGrid program")
  8. term.setCursorPos(3,8)
  9. term.setTextColor(colors.red)
  10. print("(May delete existing programs on this Computer)")
  11. term.setCursorPos(100,100)
  12. read()
  13. term.setCursorPos(10,10)
  14. term.setTextColor(colors.lime)
  15. print("Now Installing PowerGrid Program")
  16.  
  17. if fs.exists("startup") then
  18. fs.delete("startup")
  19. end
  20.  
  21. if fs.exists("ui") then
  22. fs.delete("ui")
  23. end
  24.  
  25. term.setCursorPos(1,12)
  26. shell.run("pastebin get 9sCgurm3 startup")
  27. shell.run("pastebin get YN4Xmfwq ui")
  28.  
  29. term.setTextColor(colors.lightBlue)
  30. term.setCursorPos(16,18)
  31. print("Rebooting")
  32. term.setCursorPos(26,18)
  33. textutils.slowWrite(".........", 2)
  34.  
  35. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement