Advertisement
subzero22

reinstall

Sep 2nd, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. print("Are you sure you want to reinstall?")
  5. print("You will lost all information and there's")
  6. print("no going back...")
  7. print("If you are sure type YES in all caps")
  8. write("> ")
  9. re = read()
  10.  
  11.  
  12. if re == "YES" then
  13. term.clear()
  14. term.setCursorPos(1,1)
  15.  
  16. fs.delete("notes")
  17. fs.delete("programs")
  18. fs.delete("OS")
  19. fs.delete("startup")
  20. fs.delete("readme")
  21. fs.delete("start")
  22. print("Computer will shutdown to re-install Frozen OS")
  23. timer = 5
  24. for i=1,5 do
  25. term.setCursorPos(20,9)
  26. print(timer)
  27. timer = timer - 1
  28. sleep(1)
  29. end
  30. os.shutdown()
  31.  
  32. else
  33.  
  34. print("Canceling reinstall")
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement