06NinjaKid06

CC minerOS install

Jun 20th, 2023 (edited)
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local setdisk = pcall(diskcheck)
  2.  
  3. function diskcheck
  4. {
  5.     print("Checking Disk...")
  6.     shell.setDir("disk")
  7. }
  8.  
  9. if diskcheck
  10. {
  11.    print("Proceeding.")
  12. }
  13. else
  14. {
  15.     print("Error: Please insert disk.")
  16.     exit()
  17. }
  18. shell.run("label set MinerOS")
  19. local setup fs.open("startup", "w")
  20. setup.writeLine("shell.run('pastebin get CmY8NrBx installsecond.lua'); shell.run('installsecond.lua')")
  21. setup.close()
  22. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment