Advertisement
Craft4Cube

NetREPAIR

Sep 4th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. print("Loading NetREPAIR...")
  2. os.sleep(1)
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("Welcome to NetREPAIR|")
  6. print("--------------------+")
  7. print("")
  8. print("(R)epair (E)xit")
  9. fnc = read()
  10. if fnc == "E" or fnc == "e" then
  11. os.shutdown()
  12. elseif fnc == "R" or fnc == "r" then
  13. term.clear()
  14. term.setCursorPos(1,1)
  15. print("Confirm Repair |")
  16. print("--------------------+")
  17. print("")
  18. print("(R)epair (E)xit")
  19. fnc = read()
  20. if fnc == "E" or fnc == "e" then
  21. os.shutdown()
  22. elseif fnc == "R" or fnc == "r" then
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. print("Starting Repair")
  26. print("Deleting startup...")
  27. fs.delete("startup")
  28. print("Done!")
  29. print("Press any key to reboot...")
  30. read()
  31. os.reboot()
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement