Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function install()
- term.clear()
- print("Starting Download...")
- shell.run("mkdir", "/paulos")
- shell.run("mkdir", "/paulos/apps")
- shell.run("mkdir", "/paulos/resources")
- shell.run("mkdir", "/paulos/versions/")
- shell.run("mkdir", "/paulos/versions/0.1")
- shell.run("pastebin", "get", "irGJwdnR", "/paulos/gui")
- shell.run("pastebin", "get", "nuJvC6gZ", "/paulos/resources/logo")
- shell.run("pastebin", "get", "z0eWzygs", "/paulos/resources/icon")
- shell.run("pastebin", "get", "ikwJVwmL", "/paulos/resources/icon2")
- shell.run("pastebin", "get", "s2UNJtg2", "/paulos/apps/filebrowser")
- shell.run("pastebin", "get", "xrftbCc7", "/paulos/apps/games")
- shell.run("pastebin", "get", "BLSi53FZ", "/startup")
- print("Downloads finished!")
- print("")
- print("Rebooting in 1 second...")
- os.sleep(1)
- os.reboot()
- end
- function upgrade()
- shell.run("delete", "/paulos/gui")
- shell.run("delete", "/paulos/resources/logo")
- shell.run("delete", "/paulos/resources/icon")
- shell.run("delete", "/paulos/resources/icon2")
- shell.run("delete", "/paulos/apps/filebrowser")
- shell.run("delete", "/paulos/apps/games")
- shell.run("delete", "/startup")
- end
- while true do
- term.clear()
- print("PaulOS Installer")
- print("")
- print("1. Install")
- print("2. Upgrade")
- print("Q. Cancel")
- print("")
- print("Choice: ")
- choice = read()
- if choice =="1" then
- install()
- os.reboot()
- end
- if choice =="2" then
- upgrade()
- install()
- os.reboot()
- end
- if choice =="Q" then
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement