Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("pastebin get Kz2mdMyW terminal.lua")
- local Terminal = require("/terminal").new()
- Terminal:reset()
- local resName, resInd = Terminal:promptOptions("What type of computer is this?", false,{
- "Turtle",
- "Computer"
- })
- Terminal:reset()
- local _, wipeInd = Terminal:promptOptions("Wipe data?", false,{
- "Wipe",
- "Only OS"
- })
- if wipeInd == 1 then
- shell.run("delete *")
- Terminal:reset()
- else
- shell.run("delete /OS")
- Terminal:reset()
- end
- if resInd == 1 then -- turtle
- shell.run("pastebin get zaYEwNsV OS/pastes.lua")
- elseif resInd == 2 then -- computer
- shell.run("pastebin get FsPU3Mc4 OS/pastes.lua")
- end
- shell.run("pastebin get mcCTKyRS OS/update.lua")
- Terminal:reset()
- shell.run("/OS/update.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement