Guest User

reinstall

a guest
Sep 2nd, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  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. shell.run("disk/install")
  23.  
  24. else
  25.  
  26. print("Canceling reinstall")
  27. end
Advertisement
Add Comment
Please, Sign In to add comment