Update init.lua
This commit is contained in:
parent
d49add6b51
commit
91a56448da
1 changed files with 5 additions and 5 deletions
10
src/init.lua
10
src/init.lua
|
@ -42,7 +42,7 @@ local function crash(err)
|
||||||
print("LUAJ Version: ".._LUAJ_VERSION)
|
print("LUAJ Version: ".._LUAJ_VERSION)
|
||||||
end
|
end
|
||||||
print("Contact sPhone devs:")
|
print("Contact sPhone devs:")
|
||||||
print("GitHub: BeaconNet/sPhone")
|
print("GitHub: SertexTeam/sPhone")
|
||||||
print("Thanks for using sPhone")
|
print("Thanks for using sPhone")
|
||||||
print("Press any key")
|
print("Press any key")
|
||||||
repeat
|
repeat
|
||||||
|
@ -90,9 +90,9 @@ local function recovery()
|
||||||
end
|
end
|
||||||
print("Installing sPhone...")
|
print("Installing sPhone...")
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
setfenv(loadstring(http.get("https://raw.githubusercontent.com/BeaconNet/sPhone/master/src/installer.lua").readAll()),getfenv())()
|
setfenv(loadstring(http.get("https://raw.githubusercontent.com/SertexTeam/sPhone/master/src/installer.lua").readAll()),getfenv())()
|
||||||
elseif k == 3 then
|
elseif k == 3 then
|
||||||
setfenv(loadstring(http.get("https://raw.githubusercontent.com/BeaconNet/sPhone/master/src/installer.lua").readAll()),getfenv())()
|
setfenv(loadstring(http.get("https://raw.githubusercontent.com/SertexTeam/sPhone/master/src/installer.lua").readAll()),getfenv())()
|
||||||
elseif k == 4 then
|
elseif k == 4 then
|
||||||
fs.delete("/.sPhone/config")
|
fs.delete("/.sPhone/config")
|
||||||
fs.delete("/.sPhone/cache")
|
fs.delete("/.sPhone/cache")
|
||||||
|
@ -113,7 +113,7 @@ end
|
||||||
term.setCursorPos(1,1)
|
term.setCursorPos(1,1)
|
||||||
term.clear()
|
term.clear()
|
||||||
term.setTextColor(colors.black)
|
term.setTextColor(colors.black)
|
||||||
print("BeaconNet")
|
print("Sertex")
|
||||||
if fs.exists("/.sPhone/interfaces/bootImage") then
|
if fs.exists("/.sPhone/interfaces/bootImage") then
|
||||||
local bootImage = paintutils.loadImage("/.sPhone/interfaces/bootImage")
|
local bootImage = paintutils.loadImage("/.sPhone/interfaces/bootImage")
|
||||||
paintutils.drawImage(bootImage, 11,7)
|
paintutils.drawImage(bootImage, 11,7)
|
||||||
|
@ -179,7 +179,7 @@ end
|
||||||
|
|
||||||
if argData["-u"] then
|
if argData["-u"] then
|
||||||
print("Getting installer...")
|
print("Getting installer...")
|
||||||
setfenv(loadstring(http.get("https://raw.githubusercontent.com/BeaconNet/sPhone/master/src/installer.lua").readAll()),getfenv())()
|
setfenv(loadstring(http.get("https://raw.githubusercontent.com/SertexTeam/sPhone/master/src/installer.lua").readAll()),getfenv())()
|
||||||
end
|
end
|
||||||
|
|
||||||
os.pullEvent = os.oldPullEvent
|
os.pullEvent = os.oldPullEvent
|
||||||
|
|
Loading…
Reference in a new issue