Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Installer
- --Look for gokos
- local hasGokOs = fs.exists("gokos")
- term.clear()
- term.setCursorPos(1,1)
- if hasGokOs == false then
- term.write("Installing GokOs")
- --Setup the directories
- shell.run("mkdir gokos")
- term.setCursorPos(1,2)
- term.write("Creating directory: gokos")
- shell.run("cd gokos")
- term.setCursorPos(1,3)
- term.write("Initializing gokos\\home")
- shell.run("mkdir home")
- shell.run("cd home")
- term.setCursorPos(1,4)
- term.write("Initializing gokos\\home\\desktop")
- shell.run("mkdir desktop")
- term.setCursorPos(1,5)
- term.write("Initializing gokos\\home\\programs")
- shell.run("mkdir programs")
- shell.run("cd /")
- if fs.exists("startup") == true then
- shell.run("delete startup")
- end
- --Get the intial startup script
- shell.run("pastebin get vpMfYK0v startup")
- os.reboot()
- --shell.run("pastebin get PROGRAM_MANAGER program_manager")
- --shell.run("pastebin get DESKTOP_PROGRAM desktop_prog")
- --shell.run("pastebin get DESKTOP_BACKGROUND desktop_background")
- else
- term.write("You already have GokOs!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement