Guest User

install.lua

a guest
Jun 11th, 2024
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. term.setBackgroundColor(colors.cyan)
  2. term.setTextColor(colors.white)
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. shell.run("copy disk/installer os/install")
  6. term.clear()
  7. term.setCursorPos(1,1)
  8. drive = peripheral.find("drive")
  9. drive.ejectDisk()
  10. print("Type 'Do as i say.' to install CC OS 2! Otherwise type anything else.")
  11. alt = read()
  12. while true do
  13.     if  alt == "Do as i say." then
  14.     shell.run("os/install")
  15.     else
  16.     print("Install aborted.")
  17.     sleep(5)
  18.     os.reboot()
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment