Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- if fs.exists("/DragonOS") then
- write("It seems you have DragonOS! \nThe install disk will now eject.\nIf you'd like to update, run DragonUpdate.")
- disk.eject("right")
- disk.eject("left")
- disk.eject("bottom")
- disk.eject("top")
- disk.eject("front")
- disk.eject("back")
- sleep(5)
- os.shutdown()
- end
- shell.run("cd","\\")
- shell.run("pastebin","get","Q8WJR1vN","logo")
- local logo = paintutils.loadImage("logo")
- shell.run("rm","logo")
- paintutils.drawImage(logo,1,1)
- sleep(2)
- write("\n")
- textutils.slowPrint("Welcome to DragonOS! Let's get started.",20)
- sleep(0.5)
- write("Downloading...\n",colors.red)
- write("Installing Core...\n",colors.orange)
- fs.delete("/DragonOS")
- sleep(0.5)
- fs.makeDir("DragonOS")
- shell.run("cd","/DragonOS")
- fs.makeDir("DragonOS/Core")
- shell.run("cd","Core")
- shell.run("pastebin","get","Y102JxYW","Welcome")
- shell.run("pastebin","get","504ASghF","LegacyBrowser")
- shell.run("pastebin","get","BLF2grca","Browser")
- shell.run("pastebin","get","w01d3puD","Start")
- shell.run("pastebin","get","8b41S3dq","Screen")
- shell.run("pastebin","get","LRKYUivk","ver")
- shell.run("pastebin","get","aT15gbe0","change")
- shell.run("cd","/")
- shell.run("rm","startup")
- shell.run("pastebin","get","3Lqn3Ui7","startup")
- shell.run("cd","DragonOS")
- write("Tools...\n",colors.orange)
- sleep(0.5)
- shell.run("pastebin","get","TmYv48VU","DragonUpdate")
- shell.run("pastebin","get","DgJkB8mH","Programs")
- shell.run("pastebin","get","UjLr4Tv9","ShutDown")
- shell.run("pastebin","get","F2LqQz2M","HelloWorld")
- shell.run("clear")
- fs.makeDir("/DragonData")
- term.write("Please enter in a username: ")
- local usr = read()
- shell.run("clear")
- write("DO NOT USE A PASSWORD FOR ANY REAL ACCOUNTS.\nLeave blank for no password.\nEnter a password: ")
- local pass = read("*")
- local h = fs.open("/DragonData/usr","w")
- h.write(usr)
- local h = fs.open("/DragonData/pswd","w")
- h.write(pass)
- shell.run("clear")
- write("Done!\nRestarting...",colors.green)
- disk.eject("right")
- disk.eject("left")
- disk.eject("bottom")
- disk.eject("top")
- disk.eject("front")
- disk.eject("back")
- sleep(2)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement