Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Are you sure you want to reinstall?")
- print("You will lost all information and there's")
- print("no going back...")
- print("If you are sure type YES in all caps")
- write("> ")
- re = read()
- if re == "YES" then
- term.clear()
- term.setCursorPos(1,1)
- fs.delete("notes")
- fs.delete("programs")
- fs.delete("OS")
- fs.delete("startup")
- fs.delete("readme")
- fs.delete("start")
- print("Computer will shutdown to re-install Frozen OS")
- timer = 5
- for i=1,5 do
- term.setCursorPos(20,9)
- print(timer)
- timer = timer - 1
- sleep(1)
- end
- os.shutdown()
- else
- print("Canceling reinstall")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement