kLeeNex24

Turtle installation disk

Jul 28th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --DEINSTALLATION--
  2. if fs.isDir("turtlex") then
  3.  fs.delete("turtlex")
  4. end
  5.  
  6. if fs.exists("dig") then
  7.  fs.delete("dig")
  8. end
  9.  
  10. if fs.exists("startup") then
  11.  fs.delete("startup")
  12. end
  13.  
  14. --INSTALLATION--
  15. fs.makeDir("turtlex/apis")
  16. fs.copy("disk/inventory","turtlex/apis/inventory")
  17. fs.copy("disk/turt","turtlex/apis/turtlex")
  18. fs.copy("disk/inv","turtlex/inv")
  19. fs.copy("disk/go","turtlex/go")
  20. fs.copy("disk/dig","dig")
  21. fs.copy("disk/start","startup")
  22.  
  23. os.reboot()
Add Comment
Please, Sign In to add comment