Advertisement
Nothy

OpenShell installer

Apr 5th, 2016
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. background = colors.gray
  2. shellcolor = colors.green
  3. logocolor = colors.orange
  4. term.setTextColor(colors.orange)
  5. term.setBackgroundColor(colors.gray)
  6. shell.run("clear")
  7. y = 1
  8. function out(string)
  9.   term.setCursorPos(1,y)
  10.   write(string)
  11.   y = y + 1
  12.   if y >= 19 then
  13.     shell.run("clear")
  14.     y = 1
  15.   end
  16.   term.setCursorPos(1,y)
  17. end
  18. out("OpenShell")
  19. term.setTextColor(colors.green)
  20. out("//$: Installing")
  21. if fs.exists("startup") then
  22.   fs.delete("startup")
  23. end
  24. local file = fs.open("startup","w")
  25. local data = http.get("https://www.dropbox.com/s/qwliuarg3y4z1ep/startup?dl=1")
  26. file.write(data.readAll())
  27. file.close()
  28. out("//$: Install has completed.")
  29. sleep(2)
  30. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement