Advertisement
dragonfreak1000

Installer

Dec 19th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.09 KB | None | 0 0
  1. shell.run("clear")
  2.  
  3. if fs.exists("/DragonOS") then
  4.     write("It seems you have DragonOS! \nThe install disk will now eject.\nIf you'd like to update, run DragonUpdate.")
  5.     disk.eject("right")
  6.     disk.eject("left")
  7.     disk.eject("bottom")
  8.     disk.eject("top")
  9.     disk.eject("front")
  10.     disk.eject("back")
  11.     sleep(5)
  12.     os.shutdown()
  13. end
  14. shell.run("cd","\\")
  15. shell.run("pastebin","get","Q8WJR1vN","logo")
  16. local logo = paintutils.loadImage("logo")
  17. shell.run("rm","logo")
  18. paintutils.drawImage(logo,1,1)
  19. sleep(2)
  20. write("\n")
  21. textutils.slowPrint("Welcome to DragonOS! Let's get started.",20)
  22. sleep(0.5)
  23. write("Downloading...\n",colors.red)
  24. write("Installing Core...\n",colors.orange)
  25. fs.delete("/DragonOS")
  26. sleep(0.5)
  27. fs.makeDir("DragonOS")
  28. shell.run("cd","/DragonOS")
  29. fs.makeDir("DragonOS/Core")
  30. shell.run("cd","Core")
  31. shell.run("pastebin","get","Y102JxYW","Welcome")
  32. shell.run("pastebin","get","504ASghF","LegacyBrowser")
  33. shell.run("pastebin","get","BLF2grca","Browser")
  34. shell.run("pastebin","get","w01d3puD","Start")
  35. shell.run("pastebin","get","8b41S3dq","Screen")
  36. shell.run("pastebin","get","LRKYUivk","ver")
  37. shell.run("pastebin","get","aT15gbe0","change")
  38. shell.run("cd","/")
  39. shell.run("rm","startup")
  40. shell.run("pastebin","get","3Lqn3Ui7","startup")
  41. shell.run("cd","DragonOS")
  42. write("Tools...\n",colors.orange)
  43. sleep(0.5)
  44. shell.run("pastebin","get","TmYv48VU","DragonUpdate")
  45. shell.run("pastebin","get","DgJkB8mH","Programs")
  46. shell.run("pastebin","get","UjLr4Tv9","ShutDown")
  47. shell.run("pastebin","get","F2LqQz2M","HelloWorld")
  48. shell.run("clear")
  49. fs.makeDir("/DragonData")
  50. term.write("Please enter in a username: ")
  51. local usr = read()
  52. shell.run("clear")
  53. write("DO NOT USE A PASSWORD FOR ANY REAL ACCOUNTS.\nLeave blank for no password.\nEnter a password: ")
  54. local pass = read("*")
  55. local h = fs.open("/DragonData/usr","w")
  56. h.write(usr)
  57. local h = fs.open("/DragonData/pswd","w")
  58. h.write(pass)
  59. shell.run("clear")
  60. write("Done!\nRestarting...",colors.green)
  61. disk.eject("right")
  62. disk.eject("left")
  63. disk.eject("bottom")
  64. disk.eject("top")
  65. disk.eject("front")
  66. disk.eject("back")
  67. sleep(2)
  68. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement