resaloli

install

Jul 17th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. print("Wich side is the drive?")
  2. local side = read()
  3. if peripheral.isPresent(side) then
  4.     if disk.isPresent(side) then
  5.         disk.setLabel(side, "Resagrams")
  6.         print("Preparing Disk")
  7.         sleep(2)
  8.         print("Installing on Disk")
  9.         sleep(2)
  10.         print("Instaling GUI")
  11.         sleep(1)
  12.         if fs.exists("/disk/gui") == false then
  13.             shell.run("pastebin", "get", "tGZFAB7U", "/disk/gui")
  14.         end
  15.         print("Installing nessesary files")
  16.         sleep(1)
  17.         if fs.exists("/disk/pass") == false then
  18.             shell.run("pastebin", "get", "546PnqaE", "/disk/pass")
  19.         end
  20.         print("Installing programs")
  21.         sleep(1)
  22.         if fs.exists("/disk/wizard") == false then
  23.             shell.run("pastebin", "get", "xE4TMJ5e", "/disk/wizard")
  24.         end
  25.         fs.delete(shell.getRunningProgram())
  26.     else
  27.         print("There's not Disk on that drive!")
  28.     end
  29. else
  30.     print("There's no drive on that side!")
  31.     sleep(5)
  32. end
Add Comment
Please, Sign In to add comment