Guest User

Restore

a guest
Jun 18th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.71 KB | None | 0 0
  1. --[[
  2.     this will remove EVERYTHING from the system
  3.     including CraftOS and other software, if you
  4.     want some files after a restore i recommend
  5.     that you backup those files as like said before
  6.     the computer will be wiped clean of it's content.
  7.     CraftOS can be reinstalled using an
  8.     installation disk or other ways of updating.
  9. ]]--
  10.  
  11. term.setTextColour(colours.black)
  12. term.setBackgroundColour(colours.cyan)
  13.  
  14. term.clear()
  15. term.setCursorPos(1, 1)
  16.  
  17. sleep(1.5)
  18. print ("Restoring CraftOS")
  19. sleep(1)
  20. print ("  ")
  21. textutils.slowPrint("Preparing to restore computer...")
  22. sleep(0.3)
  23. print ("  ")
  24. print ("Gathering information")
  25. sleep(3)
  26. print ("  ")
  27.  
  28. textutils.slowPrint("Starting computer restore...")
  29.  
  30. term.setCursorPos(1, 10)
  31. textutils.slowPrint("Beginning the removal of main files/folders")
  32. print ("  ")
  33. print ("  ")
  34.  
  35. term.setBackgroundColour(256)
  36.  
  37. term.setCursorPos(3, 13)
  38.  
  39. textutils.slowPrint("                                               ",2)
  40.  
  41. sleep(1)
  42.  
  43. if fs.exists("startup") == true then
  44.  fs.delete("startup")
  45. else
  46.  print ("no Startup file found")
  47. end
  48.  
  49. sleep(0.5)
  50.  
  51. if fs.exists("LabyOS") == true then
  52.  fs.delete("LabyOS")
  53. else
  54.  print ("LabyOS not installed")
  55. end
  56.  
  57. sleep(0.5)
  58.  
  59. if fs.exists("CraftOS") == true then
  60.  fs.delete("CraftOS")
  61. else
  62.  print ("CraftOS folder not found")
  63. end
  64.  
  65. if fs.exists("shutdown") == true then
  66.  fs.delete("shutdown")
  67. else
  68.  print ("shutdown file not found")
  69. end
  70.  
  71. if fs.exists("reboot") == true then
  72.  fs.delete("reboot")
  73. else
  74.  print ("reboot file not found")
  75. end
  76.  
  77. if fs.exists("
  78.  
  79. term.setBackgroundColour(colours.white)
  80.  
  81. print ("  ")
  82. print ("  ")
  83. textutils.slowPrint("done, the system will now reboot...")
  84. sleep(3)
  85.  
  86. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment