Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function install()
- term.setTextColor(colors.lightBlue)
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(3,1)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- print("Installation Guide for JS DOS 1.7 Beta")
- term.setCursorPos(3,3)
- term.clearLine()
- print("This version is DEV so please do not complain")
- term.setCursorPos(3,6)
- term.clearLine()
- print("This will install a startup disk for JS DOS 1.7 to uninstall after installed just type \"Uninstall\" in CMD")
- -- Draw the text
- local tx, ty = 5, 10
- local text = "[Agree and Install]"
- term.setCursorPos(tx, ty)
- write(text)
- -- Event loop
- while true do
- local e, but, cx, cy = os.pullEvent()
- if e == "mouse_click" then
- if cx >= tx and cx <= tx + text:len() and cy == ty then
- --PUT INSTALL CODE HERE
- shell.clearAlias("help")
- shell.setAlias("help", "/os/help")
- shell.clearAlias("id")
- shell.setAlias("id", "/os/id")
- shell.run("cd /")
- shell.run("pastebin get vxAb01H6 start.scr")
- shell.run("pastebin get k43FMEHt startup")
- shell.run("mkdir ASSETS")
- shell.run("mkdir os")
- shell.run("mkdir rom-3")
- shell.run("mkdir loginkeys")
- shell.run("mkdir sys")
- shell.run("cd ASSETS")
- shell.run("pastebin get rWADAe0c Desktop")
- shell.run("pastebin get jbE5tBnn CMD")
- shell.run("cd /os")
- shell.run("pastebin get n6cN292s help")
- shell.run("ppasebin get VFPKnRdd id")
- shell.run("pastebin get g7XAUa1Z Desktop")
- shell.run("pastebin get BtjcthXx uninstall")
- shell.run("pastebin get kFmaBJQr un")
- shell.run("pastebin get TFdKNWqq encrypt")
- shell.run("pastebin get Fjm6cd2k login")
- shell.run("pastebin get 189hC1AL ssh")
- shell.run("pastebin get cdkz0YmT test")
- shell.run("pastebin get EfJwgg2A syskey")
- shell.run("cd /loginkeys")
- shell.run("pastebin get a0HXru4P example")
- shell.run("cd /sys")
- shell.run("pastebin get HN2QvCqN update-scr.lua")
- shell.run("cd /")
- ID = math.random(100000000000)
- file = fs.open("/rom-3/ID", "w")
- file.write(ID)
- file.close()
- local file = fs.open("/key", "w")
- file.write("key")
- file.close()
- term.setTextColor(colors.green)
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- print("Your computers password is now: Key")
- print("Type \"syskey <old passcode> <password>\" In terminal to set passcode")
- print("Or go to the settings page once logged in to change your passcode.")
- print("Press any key to continue")
- os.pullEvent("key")
- --END INSTALL CODE HERE
- os.reboot()
- end
- end
- end
- end
- if term.isColor() then
- local file = fs.exists("startup")
- if file == true then
- print("Sorry, a startup file for a different OS is currently installed to delete type y/n")
- input = io.read()
- if input == "y" then
- fs.delete("startup")
- print("Installing...")
- os.sleep(1)
- install()
- end
- else
- install()
- end
- else
- print("Your computer does NOT have the correct graphics card to install!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement