Advertisement
nutcase84

FlowOS Installer

Sep 27th, 2013
717
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. term.setBackgroundColor(colors.white)
  2. term.setTextColor(colors.black)
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. print("Installing FlowOS Developer Preview...")
  6. --If startup file exists, delete it.
  7. if fs.exists("startup") then
  8.         fs.delete("startup")
  9.         print("WARNING: Found startup file. It has been deleted.")
  10. end
  11. pkgfw = http.get("https://dl.dropboxusercontent.com/u/15718932/files/FlowOS/DP-Builds-Pkg/13.9.27DP.pkg")
  12. pkgf = fs.open("syspkg", "w")
  13. pkgf.write(pkgfw.readAll())
  14. pkgf.close()
  15. shell.run("syspkg")
  16. startupf = fs.open("startup", "w")
  17. startupf.write("shell.run('.sys/fos')")
  18. startupf.close()
  19. shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement