Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pass = "pass"
- print("Welcome to the RedOS install 0.1 Alpha!")
- write("Admin Username?:")
- auser = pcall(read())
- write("What will The admin password be?")
- sapass = pcall(read("*"))
- write("Confirm:")
- capass = pcall(read("*"))
- if sapass == capass then
- print("Confirmed!")
- io.open(auser .. pass, "w")
- file:write(capass)
- else
- print("Password not confirmed")
- sleep(1)
- print("Rebooting")
- sleep(1.5)
- os.reboot()
- end
- io.open("admin", "w")
- file:write(auser)
- shell.run("cp", "disk/start" , "startup")
- shell.run("cp", "disk/redos" , "redos")
- print("Information saved!")
- print("Removing and rebooting")
- sleep(1)
- sleep(1)
- shell.run("rm", "disk/startup")
- shell.run("rm", "disk/redos")
- print("Complete!")
- sleep(1)
- print("Rebooting...")
- sleep(1)
- shell.run("cp", "disk/version", "version")
- os.reboot()
Add Comment
Please, Sign In to add comment