Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- PotatOS OmniDisk: HTTP Loader
- A new system to unify the existing PotatOS Uninstall/Debug/Update disks currently in existence.
- Comes with a flexible, modular design, centralized licensing, possibly neater code, and a menu.
- This new OmniDisk variant downloads the main OmniDisk source on load to allow remote updates.
- This is NOT usable simply by copying it onto a disk due to PotatOS signing requirements.
- You must use the dcopy (https://pastebin.com/TfNgRUKC) program or manually generate a hex-format ECC signature and write it to "disk/signature" (PotatOS will, however, not run it unless this signature is from the PDSK).
- ]]
- if not process then
- os.pullEvent = coroutine.yield
- printError "No potatOS installation detected."
- write "Install now? (yes/yes) "
- local yesno = read()
- if not yesno:lower():find "n" then
- shell.run "pastebin run RM13UGFa"
- else
- print "You have selected not to experience the glorious PotatOS Experience. We believe it is in your interest that you reconsider."
- sleep(5)
- return
- end
- end
- print "Downloading OmniDisk main code..."
- local h, e = http.get "https://pastebin.com/raw/v63NQem2"
- if not h then error(e) end
- local code = h.readAll()
- h.close()
- print "Done!"
- local UUID = "@UUID@"
- local args = ...
- local fn, e = load(code, "=OmniDisk", "t", _ENV)
- if not fn then error(e) end
- fn { arguments = args, UUID = UUID }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement