mypal125

installer

May 21st, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.79 KB | None | 0 0
  1. function clearTerm()
  2.   term.clear()
  3.   term.setCursorPos(1, 1)
  4.   print("Celect Installer")
  5. end
  6.  
  7. clearTerm()
  8. print("HTTP API must be enabled!")
  9. print("Loading installer...")
  10. sleep(2)
  11. clearTerm()
  12. print("Install location? (ex. /, /disk)")
  13. local installloc = read()
  14. clearTerm()
  15. print("Downloading and installing files...")
  16. shell.setDir(installloc.."/")
  17. shell.run("pastebin", "get", "ys1nV0Yk", "startup")
  18. print("Downloaded /startup")
  19. shell.run("pastebin", "get", "dFWG0Z6a", "bsec")
  20. print("Downloaded /bsec")
  21. fs.makeDir(installloc.."/boot")
  22. print("Created folder /boot")
  23. shell.setDir(installloc.."/boot")
  24. shell.run("pastebin", "get", "Q1hwrsBt", "celect")
  25. print("Downloaded /boot/celect")
  26. fs.makeDir(installloc.."/boot/kernel")
  27. print("Created folder /boot/kernel")
  28. shell.setDir(installloc.."/boot/kernel")
  29. shell.run("pastebin", "get", "aq44USYr", "CraftOS")
  30. print("Downloaded /boot/kernel/CraftOS")
  31. fs.makeDir(installloc.."/brom")
  32. print("Created folder /brom")
  33. shell.setDir(installloc.."/brom")
  34. shell.run("pastebin", "get", "XtMn1BUh", "bios")
  35. print("Downloaded /brom/bios")
  36. shell.run("pastebin", "get", "2E7VDm2y", "pset")
  37. print("Downloaded /brom/pset")
  38. clearTerm()
  39. print("Celect has been installed to "..installloc..".")
  40. print("Rebooting in 5...")
  41. sleep(1)
  42. clearTerm()
  43. print("Celect has been installed to "..installloc..".")
  44. print("Rebooting in 4...")
  45. sleep(1)
  46. clearTerm()
  47. print("Celect has been installed to "..installloc..".")
  48. print("Rebooting in 3...")
  49. sleep(1)
  50. clearTerm()
  51. print("Celect has been installed to "..installloc..".")
  52. print("Rebooting in 2...")
  53. sleep(1)
  54. clearTerm()
  55. print("Celect has been installed to "..installloc..".")
  56. print("Rebooting in 1...")
  57. sleep(1)
  58. clearTerm()
  59. print("Celect has been installed to "..installloc..".")
  60. print("Rebooting...")
  61. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment