Update OpenOS.lua

This commit is contained in:
Happy_mimimix 2025-02-10 09:59:31 -05:00 committed by GitHub
parent 76a4ff12a2
commit 37f852c4fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ end
-- Checking if installer can be downloaded from GitHub, because of PKIX errors, server blacklists, etc -- Checking if installer can be downloaded from GitHub, because of PKIX errors, server blacklists, etc
do do
local success, result = pcall(component.internet.request, "https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/Main.lua") local success, result = pcall(component.internet.request, "https://raw.githubusercontent.com/happymimimix/MineOS_Bugfix/master/Installer/Main.lua")
if not success then if not success then
if result then if result then
@ -102,7 +102,7 @@ end
-- Flashing EEPROM with tiny script that will run installer itself after reboot. -- Flashing EEPROM with tiny script that will run installer itself after reboot.
-- It's necessary, because we need clean computer without OpenOS hooks to computer.pullSignal() -- It's necessary, because we need clean computer without OpenOS hooks to computer.pullSignal()
component.eeprom.set([[ component.eeprom.set([[
local connection, data, chunk = component.proxy(component.list("internet")()).request("https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/Main.lua"), "" local connection, data, chunk = component.proxy(component.list("internet")()).request("https://raw.githubusercontent.com/happymimimix/MineOS_Bugfix/master/Installer/Main.lua"), ""
while true do while true do
chunk = connection.read(math.huge) chunk = connection.read(math.huge)
@ -119,4 +119,4 @@ component.eeprom.set([[
load(data)() load(data)()
]]) ]])
computer.shutdown(true) computer.shutdown(true)