Advertisement
Mackan90096

MackOS [1.1] Release Edition Installer

Apr 9th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.50 KB | None | 0 0
  1. function install()
  2. file1 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/startup") --This line downloads the file
  3. file1txt = file1.readAll() --Reads the contents
  4. file1opn = fs.open("startup","w") --Opens file
  5. file1opn.write(file1txt) --writing the file
  6. file1opn.close()
  7.  
  8. file2 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/file") --This line downloads the file
  9. file2txt = file2.readAll() --Reads the contents
  10. file2opn = fs.open("file","w") --Opens file
  11. file2opn.write(file2txt) --writing the file
  12. file2opn.close()
  13.  
  14. file3 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/mouse.cfg") --This line downloads the file
  15. file3txt = file3.readAll() --Reads the contents
  16. file3opn = fs.open("mouse.cfg","w") --Opens file
  17. file3opn.write(file3txt) --writing the file
  18. file3opn.close()
  19.  
  20. file4 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.bar1") --This line downloads the file
  21. file4txt = file4.readAll() --Reads the contents
  22. file4opn = fs.open(".bar1","w") --Opens file
  23. file4opn.write(file4txt) --writing the file
  24. file4opn.close()
  25.  
  26. file5 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.logo") --This line downloads the file
  27. file5txt = file5.readAll() --Reads the contents
  28. file5opn = fs.open(".logo","w") --Opens file
  29. file5opn.write(file5txt) --writing the file
  30. file5opn.close()
  31.  
  32. file6 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.icon") --This line downloads the file
  33. file6txt = file6.readAll() --Reads the contents
  34. file6opn = fs.open(".icon","w") --Opens file
  35. file6opn.write(file6txt) --writing the file
  36. file6opn.close()
  37.  
  38. file7 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.trivia") --This line downloads the file
  39. file7txt = file7.readAll() --Reads the contents
  40. file7opn = fs.open(".trivia","w") --Opens file
  41. file7opn.write(file7txt) --writing the file
  42. file7opn.close()
  43. end
  44.  
  45. function main()
  46.     term.clear()
  47.     term.setBackgroundColor(2048)
  48.     term.setTextColor(1)
  49.     term.clear()
  50.     term.setCursorPos(1,1)
  51.     print("Installing MackOS")
  52.     install()
  53.     sleep(0.5)
  54.     term.setCursorPos(1,1)
  55.     print("Installing MackOS.")
  56.     sleep(0.5)
  57.     term.setCursorPos(1,1)
  58.     print("Installing MackOS..")
  59.     sleep(0.5)
  60.     term.setCursorPos(1,1)
  61.     print("Installing MackOS...")
  62.     sleep(5)
  63.     term.clear()
  64.     term.setBackgroundColor(2048)
  65.     term.setTextColor(1)
  66.     term.setCursorPos(1,1)
  67.     print("Installed!")
  68.     term.setCursorPos(1,2)
  69.     print("Your computer will now reboot!")
  70.     sleep(5)
  71.     os.reboot()
  72. end
  73.  
  74. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement