mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 02:59:20 +01:00
Update OpenOS.lua
This commit is contained in:
parent
76a4ff12a2
commit
37f852c4fd
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user