Advertisement
Ocawesome101

OC-Linux Installer

Jul 12th, 2019
765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.16 KB | None | 0 0
  1. -- The OC Linux installer --
  2. -- GitGet is made by apemanzilla --
  3.  
  4. args = {...}
  5. branch = args[1]
  6. print('This script will download and install the latest version of OC Linux on your computer. For best results, you should install this on a fresh Advanced Computer.')
  7. term.write('Install OC Linux on this computer? [y/n]: ')
  8. inst = string.lower(read())
  9. if inst == 'y' then
  10.  print('Downloading GitGet by apemanzilla....')
  11.  shell.run('pastebin get W5ZkVYSi gitget')
  12.  print('The installer will now download and install the files to the hard drive.')
  13.  if branch == '--old' then
  14.   dl='oc-linux-cc-old'
  15.  else
  16.   dl='oc-linux-cc'
  17.   print('\'Flashing\' BIOS...') -- The old OC Linux has a custom startup.lua of its own. This would overwrite it.
  18.   shell.run('wget https://raw.githubusercontent.com/Ocawesome101/ocbios/master/bios.lua startup.lua')
  19.  end
  20.  shell.run('gitget ocawesome101 '..dl)
  21.  -- shell.run('wget https://pastebin.com/raw/VdJMpxkS /usr/bin/arc.lua') -- Will probably be used in the package manager
  22.  fs.delete('gitget')
  23.  fs.delete('json')
  24.  fs.delete('README.md')
  25.  fs.delete('LICENSE.md')
  26.  fs.delete('DOCS.md')
  27.  os.reboot()
  28. else
  29.  print('Aborting.')
  30.  return
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement