Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fs = require("filesystem")
- local wget = loadfile("/bin/wget.lua")
- local baseURL = "http://tryy3.se/opencomputers/"
- local installationFolder = "/home/bin"
- local jsonPastebin = "https://pastebin.com/raw/tUBRm5Bc"
- local pkg = "package-manager"
- if not fs.exists(installationFolder .. "/" .. pkg) then
- fs.makeDirectory(installationFolder .. "/" .. pkg)
- end
- if not fs.exists("/home/lib") then
- fs.makeDirectory("/home/lib")
- end
- wget("-fq", jsonPastebin, "/home/lib/json.lua")
- wget("-fq", baseURL .. pkg .. "/main.lua", installationFolder .. "/" .. pkg .. "/main.lua")
- wget("-fq", baseURL .. pkg .. "/aliases.lua", installationFolder .. "/" .. pkg .. "/aliases.lua")
- local file = io.open("/boot/99_".. pkg .. ".lua", "wb")
- file:write("dofile(\"" .. installationFolder .. "/".. pkg .. "/aliases.lua" .. "\")")
- file:close()
- os.execute("lua " .. installationFolder .. "/".. pkg .. "/main.lua install package-manager")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement