Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("BSC Recovery Mode Utility")
- write("\nPlease enter a number")
- write("\n1.Wipe Machine Data and Restore CraftOS")
- write("\n2.Cleanup Utility & Reboot normally")
- local a = read()
- if a=="1" then
- write("\nWiping Machine Data...")
- for k,v in pairs(fs.list("/")) do
- if not fs.isReadOnly(v) then
- fs.delete(v)
- end
- end
- write("\nDone! Rebooting into CraftOS!")
- sleep(2)
- os.reboot()
- end
- if a=="2" then
- write("\nCleaning Up...")
- shell.run("rm /startup")
- if fs.exists("/startupold") == true then
- shell.run("mv /startupold /startup")
- write("Done! Rebooting...")
- sleep(2)
- os.reboot()
- end
- os.reboot()
Add Comment
Please, Sign In to add comment