Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CC-DOS installer --
- local function log(text)
- term.clear()
- term.setCursorPos(1,2)
- print(text)
- os.sleep(0.3)
- end
- local function install()
- log('Downloading prerequisites...')
- shell.run('pastebin get W5ZkVYSi gitget')
- log('Flashing BIOS....')
- shell.run('wget https://raw.githubusercontent.com/Ocawesome101/ocbios/master/bios.lua startup')
- log('Installing the system...')
- shell.run('gitget ocawesome101 cc-dos')
- log('Cleaning up...')
- fs.delete('gitget')
- fs.delete('json')
- fs.delete('README.md')
- log('Done.')
- os.reboot()
- end
- term.setBackgroundColor(colors.blue)
- term.clear()
- term.setCursorPos(1,1)
- print("Ocawesome101 CC-DOS 1.0 Setup")
- print("=============================\n\n")
- print("Press [ENTER] to install CC-DOS on your computer or hold CTRL+T to teriminate.\nInstallation requires an internet connection.")
- while true do
- local e,i = os.pullEvent()
- if e == 'key' then if i == keys.enter then install() break end end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement