Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- -- Turtos Update V2 --
- version = "V1_0_4"
- if not fs.exists("MenuAPI") then shell.run("pastebin get 1RAWvWp2 MenuAPI") end
- os.loadAPI("MenuAPI")
- function update()
- local menu_0 = {"Update to "..version, "Stay on current Version", "Exit"}
- local tmp = MenuAPI.run(menu_0)
- if tmp == 1 then
- shell.run("pastebin get d2hAFQHk "..version.."/main")
- if fs.exists("startup") then fs.delete("startup") end fs.copy(version.."/main", "startup") term.clear() term.setCursorPos(1,1) print("Update Sucessfull!") sleep(1) os.reboot()
- elseif tmp == 2 then
- -- Do nothing
- elseif tmp == #menu_0 then
- os.shutdown()
- end
- end
- if not fs.exists(version.."/main") then
- update()
- end
- ]]
- shell.run("wget https://raw.githubusercontent.com/JustDoesGames/STP/main/startup.lua") os.reboot()
Add Comment
Please, Sign In to add comment