forked from Hyperion/HyperionOS
made installer
This commit is contained in:
20
misc/cct/installcct.lua
Normal file
20
misc/cct/installcct.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local release=...
|
||||
term.clear()
|
||||
term.setCursorPos(1,1)
|
||||
print("Hello, World!")
|
||||
print("Installing tar but bad...")
|
||||
shell.run("wget https://git.astronand.dev/Hyperion/HyperionOS/raw/tag/"..release.."/misc/cct/data/tarbad /tar.lua")
|
||||
print("Installing HyperionOS...")
|
||||
print("Installing precompiled tar")
|
||||
shell.run("wget https://git.astronand.dev/Hyperion/HyperionOS/raw/tag/"..release.."/misc/cct/data/Build.tar /Build.tar")
|
||||
shell.run("tar Build.tar /")
|
||||
print("Removing tar but bad...")
|
||||
shell.run("rm /tar.lua")
|
||||
shell.run("rm $")
|
||||
shell.run("cp Build $")
|
||||
shell.run("rm Build")
|
||||
shell.run("rm Build.tar")
|
||||
fs.copy("/$/boot/cct/eeprom","/startup.lua")
|
||||
print("Installing...")
|
||||
sleep(1)
|
||||
dofile("startup.lua")
|
||||
Reference in New Issue
Block a user