Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function install()
- file1 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/startup") --This line downloads the file
- file1txt = file1.readAll() --Reads the contents
- file1opn = fs.open("startup","w") --Opens file
- file1opn.write(file1txt) --writing the file
- file1opn.close()
- file2 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/file") --This line downloads the file
- file2txt = file2.readAll() --Reads the contents
- file2opn = fs.open("file","w") --Opens file
- file2opn.write(file2txt) --writing the file
- file2opn.close()
- file3 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/mouse.cfg") --This line downloads the file
- file3txt = file3.readAll() --Reads the contents
- file3opn = fs.open("mouse.cfg","w") --Opens file
- file3opn.write(file3txt) --writing the file
- file3opn.close()
- file4 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.bar1") --This line downloads the file
- file4txt = file4.readAll() --Reads the contents
- file4opn = fs.open(".bar1","w") --Opens file
- file4opn.write(file4txt) --writing the file
- file4opn.close()
- file5 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.logo") --This line downloads the file
- file5txt = file5.readAll() --Reads the contents
- file5opn = fs.open(".logo","w") --Opens file
- file5opn.write(file5txt) --writing the file
- file5opn.close()
- file6 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.icon") --This line downloads the file
- file6txt = file6.readAll() --Reads the contents
- file6opn = fs.open(".icon","w") --Opens file
- file6opn.write(file6txt) --writing the file
- file6opn.close()
- file7 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.1/.trivia") --This line downloads the file
- file7txt = file7.readAll() --Reads the contents
- file7opn = fs.open(".trivia","w") --Opens file
- file7opn.write(file7txt) --writing the file
- file7opn.close()
- end
- function main()
- term.clear()
- term.setBackgroundColor(2048)
- term.setTextColor(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Installing MackOS")
- install()
- sleep(0.5)
- term.setCursorPos(1,1)
- print("Installing MackOS.")
- sleep(0.5)
- term.setCursorPos(1,1)
- print("Installing MackOS..")
- sleep(0.5)
- term.setCursorPos(1,1)
- print("Installing MackOS...")
- sleep(5)
- term.clear()
- term.setBackgroundColor(2048)
- term.setTextColor(1)
- term.setCursorPos(1,1)
- print("Installed!")
- term.setCursorPos(1,2)
- print("Your computer will now reboot!")
- sleep(5)
- os.reboot()
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement