Rusettsten

DanetOS-Turtle-Build

Nov 29th, 2020 (edited)
361
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --This program installed the DanetOS3 Files needed for the turtle
  2.  
  3. print("Starting DanetOS3 Turtle Build Process...")
  4.  
  5. --Go to the default directory
  6. shell.run("cd /")
  7.  
  8. --Make sure there's a danetos3 directory
  9. shell.run("mkdir danetos3")
  10.  
  11. --delete all files
  12. print("Deleting Files...")
  13. shell.run("delete startup.lua")
  14. shell.run("delete danetos3/DanetOS-Turtle-Main.lua")
  15. shell.run("delete danetos3/TurtleTurn.lua")
  16. shell.run("delete danetos3/direction.danet")
  17. shell.run("delete danetos3/TurnToFace.lua")
  18. shell.run("delete danetos3/BasicDig.lua")
  19. shell.run("delete danetos3/TurtleRefuel.lua")
  20. shell.run("delete danetos3/StripMine.lua")
  21.  
  22. --replace files with pastebin ones
  23. print("Getting pastebin files...")
  24. shell.run("pastebin get pXvZaVF5 update.lua")
  25. shell.run("pastebin get pXvZaVF5 danetos3/update.lua")
  26. shell.run("pastebin get RLh0zTqH startup.lua")
  27. shell.run("pastebin get 227dK86c danetos3/DanetOS-Turtle-Main.lua")
  28. shell.run("pastebin get jVM8Pn47 danetos3/TurtleTurn.lua")
  29. shell.run("pastebin get abugZqK5 danetos3/direction.danet")
  30. shell.run("pastebin get nMDHMSp5 danetos3/TurnToFace.lua")
  31. shell.run("pastebin get xA6qu9yP danetos3/BasicDig.lua")
  32. shell.run("pastebin get t2ehDvTF danetos3/TurtleRefuel.lua")
  33. shell.run("pastebin get yT8Jyppd danetos3/StripMine.lua")
  34.  
  35. --reboot
  36. print("REBOOT!")
  37. shell.run("reboot")
RAW Paste Data