Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- The OC Linux installer --
- -- GitGet is made by apemanzilla --
- args = {...}
- branch = args[1]
- 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.')
- term.write('Install OC Linux on this computer? [y/n]: ')
- inst = string.lower(read())
- if inst == 'y' then
- print('Downloading GitGet by apemanzilla....')
- shell.run('pastebin get W5ZkVYSi gitget')
- print('The installer will now download and install the files to the hard drive.')
- if branch == '--old' then
- dl='oc-linux-cc-old'
- else
- dl='oc-linux-cc'
- print('\'Flashing\' BIOS...') -- The old OC Linux has a custom startup.lua of its own. This would overwrite it.
- shell.run('wget https://raw.githubusercontent.com/Ocawesome101/ocbios/master/bios.lua startup.lua')
- end
- shell.run('gitget ocawesome101 '..dl)
- -- shell.run('wget https://pastebin.com/raw/VdJMpxkS /usr/bin/arc.lua') -- Will probably be used in the package manager
- fs.delete('gitget')
- fs.delete('json')
- fs.delete('README.md')
- fs.delete('LICENSE.md')
- fs.delete('DOCS.md')
- os.reboot()
- else
- print('Aborting.')
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement