Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- local x = 2
- function pos1()
- term.setCursorPos(x,5)
- write("=")
- sleep(0.5)
- x = x + 1
- end
- function pos2()
- term.setCursorPos(1,7)
- end
- shell.run("label", "set", "Frozen Turtle OS Beta v1.1")
- textutils.slowPrint("Now installing Frozen Turtle Os to your computer")
- print("Installing...")
- term.setCursorPos(1,5)
- write("[ ]")
- fs.makeDir("notes")
- pos2()
- print("Making directory notes ")
- pos1()
- fs.makeDir("programs")
- pos2()
- print("Making directory programs ")
- pos1()
- fs.makeDir("OS")
- pos2()
- print("Making directory OS ")
- pos1()
- pos2()
- if fs.exists("start") == true then
- print("start is already installed skipping file")
- else
- fs.copy("disk/start", "start")
- print("Installing start ")
- end
- pos1()
- pos2()
- if fs.exists("OS/.stripmine") == true then
- print("slots already installed skipping file ")
- else
- fs.copy("disk/stripmine", "OS/.stripmine")
- print("Installing slots ")
- end
- pos1()
- pos2()
- if fs.exists("startup") == true then
- print("startup already installed skipping file ")
- else
- print("Installing startup ")
- fs.copy("disk/start", "startup")
- end
- pos1()
- pos2()
- if fs.exists("OS/.osprotect") == true then
- print("osprotect already exists skipping file ")
- else
- print("Installing osprotect ")
- fs.copy("disk/osprotect", "OS/.osprotect")
- end
- pos1()
- pos2()
- if fs.exists("OS/run") == true then
- print("run already exists skipping file ")
- else
- print("Installing startup ")
- fs.copy("disk/run", "OS/run")
- end
- pos1()
- pos2()
- if fs.exists("OS/.computer") == true then
- print("computer already exists skipping file ")
- else
- print("Installing computer ")
- fs.copy("disk/computer", "OS/.computer")
- end
- pos1()
- pos2()
- if fs.exists("OS/.flatten") == true then
- print("calculator already installed skipping. ")
- else
- print("Installing calculator ")
- fs.copy("disk/flatten", "OS/.flatten")
- end
- pos1()
- pos2()
- if fs.exists("OS/createfile") == true then
- print("create already exists skipping file ")
- else
- print("Installing createfile ")
- fs.copy("disk/createfile", "OS/createfile")
- end
- pos1()
- pos2()
- if fs.exists("OS/notepad") == true then
- print("notepad already exists skipping file ")
- else
- print("installing notepad")
- fs.copy("disk/notepad", "OS/notepad ")
- end
- pos1()
- pos2()
- if fs.exists("OS/.search") == true then
- print("search already exists skipping file ")
- else
- print("installing search ")
- fs.copy("disk/search", "OS/.search")
- end
- pos1()
- pos2()
- if fs.exists("readme") == true then
- print("readme already exists skipping file ")
- else
- print("installing readme ")
- fs.copy("disk/readme", "readme")
- end
- pos1()
- pos2()
- if fs.exists("OS/noteread") == true then
- print("noteread already exists skipping file ")
- else
- print("Installing noteread ")
- fs.copy("disk/noteread", "OS/noteread")
- end
- pos1()
- pos2()
- if fs.exists("notes/test") == true then
- print("test already exists skipping file ")
- else
- print("Installing test ")
- fs.copy("disk/test", "notes/test")
- end
- pos1()
- pos2()
- if fs.exists("OS/.floor") == true then
- print("tarnchat already exists skipping file ")
- else
- print("Installing tarchchat ")
- fs.copy("disk/floor", "OS/.floor")
- end
- pos1()
- pos2()
- if fs.exists("OS/editor") == true then
- print("editor already exists skipping file ")
- else
- print("Installing editor ")
- fs.copy("disk/editor", "OS/editor")
- end
- if fs.exists("OS/.wall") == true then
- print("editor already exists skipping file ")
- else
- print("Installing editor ")
- fs.copy("disk/wall", "OS/.wall")
- end
- pos1()
- pos2()
- print()
- print("Would you like to install a lock on this")
- print("computer? (yes) or (no)")
- lock = string.lower(read())
- if lock == "yes" then
- if fs.exists("OS/.lock") == true then
- pos2()
- print("lock already installed skipping file")
- else
- print("Enter password that would like")
- print("This will be the only time your pw is shown.")
- print()
- write("> ")
- local pass = read()
- local file = fs.open("OS/.password","w")
- file.writeLine(pass)
- file.close()
- print("Installing lock")
- fs.copy("disk/lock", "OS/.lock")
- fs.copy("disk/oslock", "OS/.oslock")
- end
- else
- print("No lock will be installed")
- end
- print()
- print("Installation complete. Please press any")
- print("key to start Frozen OS")
- os.pullEvent("key")
- shell.run("OS/.osprotect")
- shell.run("OS/.computer")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement