-- Runner script for cc-cakehud local type = "" if not fs.exists("type.txt") then print("What type of device is this? (server/client)") local c = read() if c == "server" or c == "client" then type = c else print("Invalid type") exit() end local file = fs.open("type.txt", "w") file.write(c) file.close() end local file = fs.open("type.txt", "r") type = file.readAll() file.close() print("Updating %s...") -- -- Remove the old client shell.run("rm", string.format("startup.lua", type)) -- -- Download the new client shell.run("wget", string.format("https://downloads.haiiro.moe/cc/%s.lua", type), "startup.lua") -- -- Run the new client shell.run("startup.lua")