Advertisement
eytixis

Install Eytixis Programs (Opencomputers mod - OpenOS)

Sep 10th, 2020 (edited)
1,985
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.38 KB | None | 0 0
  1. local shell = require("shell")
  2. local term = require("term")
  3. local component = require("component")
  4. local filesystem = require("filesystem")
  5.  
  6. local args = {...}
  7.  
  8. if (component.internet == nil) then
  9.     print("No Internet Card Found!")
  10.     print("Please install one and try again!")
  11. else
  12.     if (#args == 0) then
  13.         term.clear()
  14.         term.setCursor(1,1)
  15.         print("Downloading Eytixis Install Program from Pastebin!")
  16.         shell.execute("pastebin get tAaPygpU //bin/eytixis.lua")
  17.         print("Downloading Transfer Program from Pastebin!")
  18.         shell.execute("pastebin get wzpHEiyT //bin/transfer.lua")
  19.         print("Downloading flashbios program from Pastebin!")
  20.         shell.execute("pastebin get 63877xDV //bin/flashbios.lua")
  21.         print("Downloading Remote File Transfer Protocol Library from Pastebin!")
  22.         shell.execute("pastebin get AaSLzhwh //lib/rftp.lua")
  23.         print("Downloading Formatter Library from Pastebin!")
  24.         shell.execute("pastebin get PHeLPhwf //lib/formatter.lua")
  25.         print("Downloading Transceiver Library from Pastebin!")
  26.         shell.execute("pastebin get BNAAS1fe //lib/transceiver.lua")
  27.         print("Downloading Signals from Pastebin!")
  28.         shell.execute("pastebin get 0YhXPFFp //lib/signals.lua")
  29.         print("Downloading Bios file from Pastebin!")
  30.         if not filesystem.exists("//eytixis/files") then
  31.             shell.execute("mkdir //eytixis/files")
  32.         end
  33.         shell.execute("pastebin get rf4bGMtU //eytixis/files/bios.lua")
  34.         print("Installation Complete!")
  35.         print("A system reboot is recommended!")
  36.     elseif (#args == 1) then
  37.         if (args[1] == "update") then
  38.             print("Downloading Eytixis Install Program from Pastebin!")
  39.             shell.execute("rm //bin/eytixis.lua")
  40.             shell.execute("pastebin get tAaPygpU //bin/eytixis.lua")
  41.             shell.execute("eytixis deleteall")
  42.             shell.execute("eytixis")
  43.         end
  44.         if (args[1] == "deleteall") then
  45.             shell.execute("rm //bin/transfer.lua")
  46.             shell.execute("rm //bin/flashbios.lua")
  47.             shell.execute("rm //lib/rftp.lua")
  48.             shell.execute("rm //lib/formatter.lua")
  49.             shell.execute("rm //lib/transceiver.lua")
  50.             shell.execute("rm //lib/signals.lua")
  51.             shell.execute("rm //eytixis/files/bios.lua")
  52.         end
  53.     end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement