Guest User

Untitled

a guest
Jul 14th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. pass = "pass"
  2. print("Welcome to the RedOS install 0.1 Alpha!")
  3. write("Admin Username?:")
  4. auser = pcall(read())
  5. write("What will The admin password be?")
  6. sapass = pcall(read("*"))
  7. write("Confirm:")
  8. capass = pcall(read("*"))
  9. if sapass == capass then
  10. print("Confirmed!")
  11. io.open(auser .. pass, "w")
  12. file:write(capass)
  13. else
  14. print("Password not confirmed")
  15. sleep(1)
  16. print("Rebooting")
  17. sleep(1.5)
  18. os.reboot()
  19. end
  20. io.open("admin", "w")
  21. file:write(auser)
  22. shell.run("cp", "disk/start" , "startup")
  23. shell.run("cp", "disk/redos" , "redos")
  24. print("Information saved!")
  25. print("Removing and rebooting")
  26. sleep(1)
  27. sleep(1)
  28. shell.run("rm", "disk/startup")
  29. shell.run("rm", "disk/redos")
  30. print("Complete!")
  31. sleep(1)
  32. print("Rebooting...")
  33. sleep(1)
  34. shell.run("cp", "disk/version", "version")
  35. os.reboot()
Add Comment
Please, Sign In to add comment