Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --First name
- firstname = "If You need to be install system print y and after that again y"
- --Second NAme
- secondname = "If you want to cancel the installation print n and after that again n"
- --No
- no = "n"
- nreally = "n"
- --Yes
- yes = "y"
- yesrelly = "y"
- --(Don't edit unless you know what you are doing)
- shell.run("clear")
- print (firstname)
- print (secondname)
- status, input = pcall (read)
- if input == yes then
- print "really?"
- status, password = pcall (read,'*')
- if password == yesrelly then
- print "Initialising"
- sleep(2)
- print "Preparing to install"
- sleep(2)
- print "Installing..."
- sleep(2)
- print "Installed!"
- sleep(2)
- os.reboot()
- else
- print "Failed!"
- sleep(0.9)
- os.shutdown()
- end
- elseif input == no then
- print "really?"
- status, password = pcall (read,'*')
- if password == nreally then
- print "ComputerRebooted!"
- sleep(2)
- os.reboot()
- else
- print "Failed!"
- sleep(0.9)
- os.shutdown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement