forked from Hyperion/HyperionOS
21 lines
717 B
Lua
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") |