Advertisement
Le_JuiceBOX

[Disk] installer.lua

Apr 1st, 2024 (edited)
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. shell.run("pastebin get Kz2mdMyW terminal.lua")
  2. local Terminal = require("/terminal").new()
  3. Terminal:reset()
  4. local resName, resInd = Terminal:promptOptions("What type of computer is this?", false,{
  5.     "Turtle",
  6.     "Computer"
  7. })
  8. Terminal:reset()
  9. local _, wipeInd = Terminal:promptOptions("Wipe data?", false,{
  10.     "Wipe",
  11.     "Only OS"
  12. })
  13. if wipeInd == 1 then
  14.     shell.run("delete *")
  15.     Terminal:reset()
  16. else
  17.     shell.run("delete /OS")
  18.     Terminal:reset()
  19. end
  20. if resInd == 1 then -- turtle
  21.     shell.run("pastebin get zaYEwNsV OS/pastes.lua")
  22. elseif resInd == 2 then -- computer
  23.     shell.run("pastebin get FsPU3Mc4 OS/pastes.lua")
  24. end
  25. shell.run("pastebin get mcCTKyRS OS/update.lua")
  26. Terminal:reset()
  27. shell.run("/OS/update.lua")
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement