Advertisement
Ocawesome101

CC-DOS Installer

Aug 13th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. -- CC-DOS installer --
  2.  
  3. local function log(text)
  4.  term.clear()
  5.  term.setCursorPos(1,2)
  6.  print(text)
  7.  os.sleep(0.3)
  8. end
  9.  
  10. local function install()
  11.  log('Downloading prerequisites...')
  12.  shell.run('pastebin get W5ZkVYSi gitget')
  13.  log('Flashing BIOS....')
  14.  shell.run('wget https://raw.githubusercontent.com/Ocawesome101/ocbios/master/bios.lua startup')
  15.  log('Installing the system...')
  16.  shell.run('gitget ocawesome101 cc-dos')
  17.  log('Cleaning up...')
  18.  fs.delete('gitget')
  19.  fs.delete('json')
  20.  fs.delete('README.md')
  21.  log('Done.')
  22.  os.reboot()
  23. end
  24.  
  25. term.setBackgroundColor(colors.blue)
  26. term.clear()
  27. term.setCursorPos(1,1)
  28. print("Ocawesome101 CC-DOS 1.0 Setup")
  29. print("=============================\n\n")
  30. print("Press [ENTER] to install CC-DOS on your computer or hold CTRL+T to teriminate.\nInstallation requires an internet connection.")
  31. while true do
  32.  local e,i = os.pullEvent()
  33.  if e == 'key' then if i == keys.enter then install() break end end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement