Advertisement
BlueZero

BlueInstaller v0.8 (CC 1.3 | Tekkit 1.3.1+ Friendly)

Nov 20th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.36 KB | None | 0 0
  1. --Name: BlueInstaller
  2. --Version: v0.8
  3. --Author: BlueZero (AKA Stevenmcl)
  4. --Platform: ComputerCraft LUA Environment
  5.  
  6. file1 = "1"
  7.  
  8. function blueinstaller()
  9. programInput()
  10.   if userInput == file1 then
  11.     if fs.exists("bluelock") and fs.exists("startup") then
  12.       shell.run("clear")
  13.       print ("BlueLock OS is already installed on this system...")
  14.       sleep(2)
  15.       blueinstaller()
  16.         else
  17.       shell.run("clear")
  18.       print ("Installing BlueLock OS...")
  19.       shell.run("pastebin", "get", "QCc257kv", "bluelock")
  20.       sleep(1)
  21.       print ("Pastebin Downloaded.........[OK]")
  22.         if fs.exists("startup") then
  23.         print ("Startup file detected.")
  24.         print (" ")
  25.         print (" ")
  26.         print ("For BlueLock OS to run properly, you need to add a shell.run command for 'bluelock' in order for it to run properly.")
  27.         sleep(5)
  28.           else
  29.         shell.run("pastebin", "get", "BDXWb1BU", "startup")
  30.         end
  31.       sleep(2)
  32.       print ("BlueLock OS installed Successfully.")
  33.       sleep(2)
  34.       if fs.exists("bluelock") then
  35.         print (" ")
  36.         print (" ")
  37.         print ("BlueLock OS has been installed but requires a restart to initialise.")
  38.         print ("Be sure to type 'reboot', 'shutdown', hold CTRL + R, or hold CTRL + S when you're done.")
  39.         sleep(8)
  40.       end
  41.       blueinstaller()
  42.     end
  43.   end
  44.  
  45.   if userInput == "credits" then
  46.     shell.run("clear")
  47.     print ("BlueInstaller designed and created by BlueZero (Stevenmcl)")
  48.     print ("Please visit; http://computercraft.net/")
  49.     sleep(5)
  50.     blueinstaller()
  51.   end
  52.  
  53.   if (userInput == "quit" or userInput == "exit" or userInput == "stop") then
  54.     shell.run("clear")
  55.     print ("Goodbye.")
  56.     sleep(2)
  57.     shell.run("clear")
  58.     error()
  59.   end
  60.  
  61.   if ((userInput ~= file1) and (userInput ~= "credits")) then
  62.     shell.run("clear")
  63.     print ("Invalid Option, please try again.")
  64.     sleep(2)
  65.     blueinstaller()
  66.   end
  67. end
  68.  
  69. function programInput()
  70.   shell.run("clear")
  71.   print ("BlueInstaller v0.8 running on OS Version: ", os.version())
  72.   print ("to view credits, type 'credits'.")
  73.   print ("To exit, type: 'quit', 'stop', or 'exit'.")
  74.   print (" ")
  75.   print ("One Program Currently Available: ")
  76.   print (" ")
  77.   print ("BlueLock OS: 1")
  78.   print (" ")
  79.   write ("Option: ")
  80.   userInput=io.read()
  81. end
  82.  
  83. blueinstaller()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement