Files
HyperionOS/misc/cct/installcct.lua
2026-03-19 12:10:31 -04:00

21 lines
717 B
Lua

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/installdata/tarbad /tar.lua")
print("Installing HyperionOS...")
print("Installing precompiled tar")
shell.run("wget https://git.astronand.dev/Hyperion/HyperionOS/raw/tag/"..release.."/misc/cct/installdata/Build.tar /Build.tar")
shell.run("tar Build.tar /")
sleep(1)
print("Removing tar but bad...")
shell.run("rm /tar.lua")
shell.run("rm $")
shell.run("rm Build.tar")
shell.run("cp Build $")
shell.run("rm Build")
fs.copy("/$/boot/cct/eeprom","/startup.lua")
print("Installing...")
sleep(1)
dofile("startup.lua")