Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- this will remove EVERYTHING from the system
- including CraftOS and other software, if you
- want some files after a restore i recommend
- that you backup those files as like said before
- the computer will be wiped clean of it's content.
- CraftOS can be reinstalled using an
- installation disk or other ways of updating.
- ]]--
- term.setTextColour(colours.black)
- term.setBackgroundColour(colours.cyan)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(1.5)
- print ("Restoring CraftOS")
- sleep(1)
- print (" ")
- textutils.slowPrint("Preparing to restore computer...")
- sleep(0.3)
- print (" ")
- print ("Gathering information")
- sleep(3)
- print (" ")
- textutils.slowPrint("Starting computer restore...")
- term.setCursorPos(1, 10)
- textutils.slowPrint("Beginning the removal of main files/folders")
- print (" ")
- print (" ")
- term.setBackgroundColour(256)
- term.setCursorPos(3, 13)
- textutils.slowPrint(" ",2)
- sleep(1)
- if fs.exists("startup") == true then
- fs.delete("startup")
- else
- print ("no Startup file found")
- end
- sleep(0.5)
- if fs.exists("LabyOS") == true then
- fs.delete("LabyOS")
- else
- print ("LabyOS not installed")
- end
- sleep(0.5)
- if fs.exists("CraftOS") == true then
- fs.delete("CraftOS")
- else
- print ("CraftOS folder not found")
- end
- if fs.exists("shutdown") == true then
- fs.delete("shutdown")
- else
- print ("shutdown file not found")
- end
- if fs.exists("reboot") == true then
- fs.delete("reboot")
- else
- print ("reboot file not found")
- end
- if fs.exists("
- term.setBackgroundColour(colours.white)
- print (" ")
- print (" ")
- textutils.slowPrint("done, the system will now reboot...")
- sleep(3)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment