Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local filesystem = require("filesystem")
- local term = require("term")
- local component = require("component")
- local gpu = component.gpu;
- if filesystem.get("bin/edit.lua") == nil or filesystem.get("bin/edit.lua").isReadOnly() then
- error("Floppy disk filesystem detected: type \"install\" in command line and install OpenOS to your Hard Drive. After that run TermOS installer again.")
- else
- gpu.setForeground(0x00FF00);
- print("Downloading VGUI...\n")
- local url = "https://raw.githubusercontent.com/VladG24YT/OC-VGUI/master"
- local files = {
- updater = "/bin/updgui.lua",
- gobject = "/lib/gobject.lua",
- gcontainer = "/lib/gcontainer.lua",
- gcomponent = "/lib/gcomponent.lua",
- gcolorapi = "/lib/GColorAPI.lua",
- }
- for key, value in pairs(files) do
- term.write("Downloading "..key..": "..url..value.." -> "..value)
- loadfile("/bin/wget.lua")(url..value, value, "-fq")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement