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.2/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.2/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.2/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.2/.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.2/.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.2/.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.2/.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()
- fs.makeDir("/programs")
- file8 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.2/programs/ccTube") --This line downloads the file
- file8txt = file8.readAll() --Reads the contents
- file8opn = fs.open("/programs/ccTube","w") --Opens file
- file8opn.write(file8txt) --writing the file
- file8opn.close()
- file9 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.2/programs/lightshot") --This line downloads the file
- file9txt = file9.readAll() --Reads the contents
- file9opn = fs.open("/programs/lightshot","w") --Opens file
- file9opn.write(file9txt) --writing the file
- file9opn.close()
- fs.makeDir("/games")
- file10 = http.get("http://mackan90096.dustinschreiber.com/MackOS/files/1.2/games/craftogram") --This line downloads the file
- file10txt = file10.readAll() --Reads the contents
- file10opn = fs.open("/games/craftogram","w") --Opens file
- file10opn.write(file10txt) --writing the file
- file10opn.close()
- end
- function main()
- if not term.isColor() then
- term.clear()
- term.setCursorPos(1,1)
- print("This requires a advanced computer to work!")
- sleep(2)
- else
- w, h = term.getSize()
- term.clear()
- term.setBackgroundColor(2048)
- term.setTextColor(1)
- term.clear()
- term.setCursorPos(math.floor(w-string.len(" __ ___ __ ____ _____"))/2, 2)
- print(" __ ___ __ ____ _____")
- term.setCursorPos(math.floor(w-string.len(" / |/ /___ ______/ /__/ __ \/ ___/"))/2, 3)
- print(" / |/ /___ ______/ /__/ __ \/ ___/")
- term.setCursorPos(math.floor(w-string.len(" / /|_/ / __ `/ ___/ //_/ / / /\__ \ "))/2, 4)
- print(" / /|_/ / __ `/ ___/ //_/ / / /\__ \ ")
- term.setCursorPos(math.floor(w-string.len(" / / / / /_/ / /__/ ,< / /_/ /___/ / "))/2,5)
- print(" / / / / /_/ / /__/ ,< / /_/ /___/ / ")
- term.setCursorPos(math.floor(w-string.len("/_/ /_/\__,_/\___/_/|_|\____//____/ "))/2,6)
- print("/_/ /_/\__,_/\___/_/|_|\____//____/ ")
- paintutils.drawLine(3,10,17,10, 256)
- install()
- sleep(1)
- paintutils.drawPixel(3,10, 8)
- paintutils.drawPixel(4,10, 8)
- paintutils.drawPixel(5,10, 8)
- paintutils.drawPixel(6,10, 8)
- paintutils.drawPixel(7,10, 8)
- sleep(1)
- paintutils.drawPixel(8,10, 8)
- paintutils.drawPixel(9,10, 8)
- paintutils.drawPixel(10,10, 8)
- paintutils.drawPixel(11,10, 8)
- paintutils.drawPixel(12,10, 8)
- sleep(1)
- term.clear()
- paintutils.drawPixel(13,10, 8)
- paintutils.drawPixel(14,10, 8)
- paintutils.drawPixel(15,10, 8)
- paintutils.drawPixel(16,10, 8)
- paintutils.drawPixel(17,10, 8)
- 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
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement