View difference between Paste ID: xSfkqGGt and PDE3eVsL
SHOW: | | - or go back to the newest paste.
1-
local component = require("component")
1+
require("component").eeprom.set([[
2-
local computer = require("computer")
2+
  local handle, data, chunk = component.proxy(component.list("internet")()).request("https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/Main.lua"), ""
3-
local os = require("os")
3+
  while true do
4-
4+
    chunk = handle.read(math.huge)
5-
local gpu = component.gpu
5+
    if chunk then
6-
6+
        data = data .. chunk
7-
-- Checking if computer is tough enough for such a S T Y L I S H product as MineOS
7+
    else
8-
do
8+
        break
9-
	local potatoes = {}
9+
    end
10-
10+
  end
11-
	-- GPU/screen
11+
  handle.close()
12-
	if gpu.getDepth() < 8 or gpu.maxResolution() < 160 then
12+
  load(data)()
13-
		table.insert(potatoes, "Tier 3 graphics card and screen");
13+
14-
	end
14+
 
15-
15+
require("computer").shutdown(true)