Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- -- Installer Function
- installerf = function(code, file)
- print("Downloading pastebin.com/"..code)
- downloader = http.get("http://pastebin.com/raw/"..code)
- if downloader then
- input = io.open(file, "w")
- input:write(downloader.readAll())
- input:close()
- return true
- else
- print("Download Failed Error Check HTTP . . .")
- os.reboot()
- end
- end
- -- End of function
- colBack = colors.lightBlue
- colText = colors.red
- installerf("3LdTetJJ", ".logo")
- installerf("cVADapZd", ".instFin")
- installerf("ZA6eLSif", "/.os/.uninstall")
- installerf("57TmWKA8", "/.os/.reinstall")
- term.clear()
- function install()
- shell.run("set shell.allow_disk_startup false")
- local logo = paintutils.loadImage(".logo")
- term.setBackgroundColor( colBack )
- term.clear()
- term.setTextColor( colBack )
- paintutils.drawImage(logo, 6, 4)
- term.setCursorPos( 1,1 )
- end
- install()
- sleep(2)
- local finish = paintutils.loadImage( ".instFin" )
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("vGdX1f3Z", "/startup")
- install()
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("gCVxvMY6", "/.os/.gui" )
- install()
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("GjhNSmJL", "restart")
- install()
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("XMEFm89J", "/.os/.backgrounds/desktop")
- install()
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("WJwBD9qy", "/.os/.backgrounds/pIcon")
- install()
- term.setTextColor( colors.red )
- term.setCursorPos( 13, 6 )
- term.setBackgroundColor( colBack )
- term.clearLine()
- print( "Half Way through installation . . ." )
- sleep(4)
- install()
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("VRxvgCGk", "/.os/.boot")
- install()
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("AUFnUb3M", "/.os/.password")
- install()
- term.setCursorPos( 16, 6 )
- term.setBackgroundColor( colBack )
- installerf("3zCuAfF5", "/edit")
- install()
- sleep(3)
- term.clear()
- term.setBackgroundColor( colors.white )
- term.clear()
- term.setTextColor( colors.green )
- term.setCursorPos( 16,6 )
- print( "SpaceOS Installed!" )
- paintutils.drawImage( finish, 5, 3 )
- sleep(3)
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement