Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if term.isColor() then
- term.setBackgroundColor(colors.cyan)
- else
- term.setBackgroundColor(colors.black)
- end
- term.clear()
- term.setCursorPos(1,1)
- print("WELCOME TO AIOS V5 INSTALLER")
- print("SELECT INSTALL METHOD")
- print("[P]astebin [D]isk [S]elf compile")
- INP = read()
- if string.upper(INP) == "P" then
- METHOD = "PB"
- break
- elseif string.upper(INP) == "D" then
- METHOD = "D"
- break
- elseif string.upper(INP) == "S" then
- print("please reboot")
- sleep(20)
- os.reboot()
- end
- end
- function DI()
- while true do
- X = {"WELCOME TO AIOS V5"}
- W,H = term.getSize()
- term.setBackgroundColor(colors.cyan)
- term.clear()
- term.setTextColor(colors.white)
- term.setCursorPos((W/2)-11,(H/2)+5)
- term.setCursorPos(1,1)
- print("[A]bort or press enter")
- Z = read()
- if string.upper(Z) == "A" then
- break
- end
- settings.clear()
- shell.run("cp disk/* ./*")
- end
- end
- function PB()
- print("PB NOT AVAIBLE RIGHT NOW")
- print("INCLUDE STANDARD BIOS? [Y/N]")
- if string.upper(read()) == "Y" then
- shell.run("pastebin get QF5FRN5J .BIOS")
- else
- print("DO NOT FORGET TO INSTALL A BOOTLOADER OR BIOS")
- end
- print("INCLUDE BG? [Y/N]")
- if string.upper(read()) == "Y" then
- shell.run("mkdir /img/")
- shell.run("pastebin get FmgtwZYA bg.nfp")
- end
- shell.run("pastebin get 3jpvnjzg .os")
- shell.run("pastebin get x2SpvQ8U startup")
- print("DONE!")
- end
- if METHOD == "D" then
- DI()
- elseif METHOD == "PB" then
- PB()
- else
- textutils.slowPrint("ERROR METHOD UNKNOWN")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement