Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function install()
- if (not fs.exists("/usr/bin/packman")) and (not fs.exists("/usr/apis/package")) then
- print(":: Downloading packman installer")
- local pmi = http.get("http://pastebin.com/raw/4zyreNZy")
- local pmi_f = fs.open(".pmi", "w")
- pmi_f.write(pmi.readAll())
- pmi_f.close()
- pmi.close()
- print(":: Installing packman")
- shell.run(".pmi")
- print(":: Cleaning up")
- fs.delete(".pmi")
- end
- print(":: Installing admicos/admios-full")
- shell.run("packman force install admicos/admios-full")
- print(":: DONE! (press any key to reboot)")
- os.pullEvent("key")
- os.reboot()
- end
- local function main()
- if _ADMIOS then
- error("AdmiOS is already installed.")
- end
- print("Are you sure you want to continue? [yN]")
- local k = {os.pullEvent("key")}
- if k[2] == keys.y then
- install()
- else
- sleep(.01) --to make sure the character doesnt get entered to the shell.
- print("ok. bye")
- end
- end main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement