Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clearTerm()
- term.clear()
- term.setCursorPos(1, 1)
- print("Celect Installer")
- end
- clearTerm()
- print("HTTP API must be enabled!")
- print("Loading installer...")
- sleep(2)
- clearTerm()
- print("Install location? (ex. /, /disk)")
- local installloc = read()
- clearTerm()
- print("Downloading and installing files...")
- shell.setDir(installloc.."/")
- shell.run("pastebin", "get", "ys1nV0Yk", "startup")
- print("Downloaded /startup")
- shell.run("pastebin", "get", "dFWG0Z6a", "bsec")
- print("Downloaded /bsec")
- fs.makeDir(installloc.."/boot")
- print("Created folder /boot")
- shell.setDir(installloc.."/boot")
- shell.run("pastebin", "get", "Q1hwrsBt", "celect")
- print("Downloaded /boot/celect")
- fs.makeDir(installloc.."/boot/kernel")
- print("Created folder /boot/kernel")
- shell.setDir(installloc.."/boot/kernel")
- shell.run("pastebin", "get", "aq44USYr", "CraftOS")
- print("Downloaded /boot/kernel/CraftOS")
- fs.makeDir(installloc.."/brom")
- print("Created folder /brom")
- shell.setDir(installloc.."/brom")
- shell.run("pastebin", "get", "XtMn1BUh", "bios")
- print("Downloaded /brom/bios")
- shell.run("pastebin", "get", "2E7VDm2y", "pset")
- print("Downloaded /brom/pset")
- clearTerm()
- print("Celect has been installed to "..installloc..".")
- print("Rebooting in 5...")
- sleep(1)
- clearTerm()
- print("Celect has been installed to "..installloc..".")
- print("Rebooting in 4...")
- sleep(1)
- clearTerm()
- print("Celect has been installed to "..installloc..".")
- print("Rebooting in 3...")
- sleep(1)
- clearTerm()
- print("Celect has been installed to "..installloc..".")
- print("Rebooting in 2...")
- sleep(1)
- clearTerm()
- print("Celect has been installed to "..installloc..".")
- print("Rebooting in 1...")
- sleep(1)
- clearTerm()
- print("Celect has been installed to "..installloc..".")
- print("Rebooting...")
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment