Advertisement
Ocawesome101

Installer

Jul 9th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. -- Preliminary formalities --
  2.  
  3. print('Welcome to the OC-OS installer.')
  4. print('This script will guide you through the installation of OC-OS and accompanying required files.')
  5.  
  6. -- The installer! --
  7. print('Do you really want to install OC-OS? All existing data will be overwritten [Y/n]:')
  8. inst = read()
  9. if string.lower(inst) == 'y' then
  10.  print('Downloading GitGet by apemanzilla....')
  11.  shell.run('pastebin get W5ZkVYSi gitget')
  12.  shell.run('gitget ocawesome101 oc-os')
  13.  print('Rebooting in 3 seconds.')
  14.  sleep(3)
  15.  os.reboot()
  16. else
  17.  if string.lower(inst) == 'n' then
  18.   print('Okay. Bye!')
  19.   sleep(1)
  20.   os.reboot()
  21.  else
  22.   print('Invalid choice - assuming no.')
  23.   sleep(1)
  24.   os.reboot()
  25.  end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement