Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Computer Installer
- console = "pGhFuMWX"
- gui = "j44YAb9F"
- master = "J438Usuq"
- mainDoor = "Ln6eXbAg"
- spawner = "aGW702uP"
- lights = "Mzv5RFSC"
- function install(link,file)
- if fs.exists(file) then
- fs.delete(file)
- shell.run("pastebin", "get", link, file)
- print("Updated "..file)
- else
- shell.run("pastebin", "get", link, file)
- print("Installed "..file)
- end
- end
- function start()
- term.clear()
- term.setCursorPos(1,1)
- print("Please define computer type:")
- print("Options are: [master, main door, spawner, lights]")
- write(">")
- compType = read()
- if compType == "master" then
- install(console, "console")
- install(gui, "gui")
- install(master, "startup")
- elseif compType == "main door" then
- install(console, "console")
- install(mainDoor, "startup")
- elseif compType == "spawner" then
- install(spawner, "startup")
- elseif compType == "lights" then
- install(console, "console")
- install(lights, "startup")
- else
- print("Invalid computer type.")
- return
- end
- print("Files Downloaded and installed. Make sure to set the variables in startup, then restart")
- end
- start()
Add Comment
Please, Sign In to add comment