Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Name: BlueInstaller
- --Version: v0.8
- --Author: BlueZero (AKA Stevenmcl)
- --Platform: ComputerCraft LUA Environment
- file1 = "1"
- function blueinstaller()
- programInput()
- if userInput == file1 then
- if fs.exists("bluelock") and fs.exists("startup") then
- shell.run("clear")
- print ("BlueLock OS is already installed on this system...")
- sleep(2)
- blueinstaller()
- else
- shell.run("clear")
- print ("Installing BlueLock OS...")
- shell.run("pastebin", "get", "QCc257kv", "bluelock")
- sleep(1)
- print ("Pastebin Downloaded.........[OK]")
- if fs.exists("startup") then
- print ("Startup file detected.")
- print (" ")
- print (" ")
- print ("For BlueLock OS to run properly, you need to add a shell.run command for 'bluelock' in order for it to run properly.")
- sleep(5)
- else
- shell.run("pastebin", "get", "BDXWb1BU", "startup")
- end
- sleep(2)
- print ("BlueLock OS installed Successfully.")
- sleep(2)
- if fs.exists("bluelock") then
- print (" ")
- print (" ")
- print ("BlueLock OS has been installed but requires a restart to initialise.")
- print ("Be sure to type 'reboot', 'shutdown', hold CTRL + R, or hold CTRL + S when you're done.")
- sleep(8)
- end
- blueinstaller()
- end
- end
- if userInput == "credits" then
- shell.run("clear")
- print ("BlueInstaller designed and created by BlueZero (Stevenmcl)")
- print ("Please visit; http://computercraft.net/")
- sleep(5)
- blueinstaller()
- end
- if (userInput == "quit" or userInput == "exit" or userInput == "stop") then
- shell.run("clear")
- print ("Goodbye.")
- sleep(2)
- shell.run("clear")
- error()
- end
- if ((userInput ~= file1) and (userInput ~= "credits")) then
- shell.run("clear")
- print ("Invalid Option, please try again.")
- sleep(2)
- blueinstaller()
- end
- end
- function programInput()
- shell.run("clear")
- print ("BlueInstaller v0.8 running on OS Version: ", os.version())
- print ("to view credits, type 'credits'.")
- print ("To exit, type: 'quit', 'stop', or 'exit'.")
- print (" ")
- print ("One Program Currently Available: ")
- print (" ")
- print ("BlueLock OS: 1")
- print (" ")
- write ("Option: ")
- userInput=io.read()
- end
- blueinstaller()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement