Marlingaming

CC Tweaked CCSPS Iron - Security Integrity Scan

Jan 28th, 2022 (edited)
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local file = fs.open("os/System/Security/Files/ReqFiles.txt","r")
  2.  
  3. local Items = textutils.unserialize(file.readAll())
  4. local Pass = true
  5. file.close()
  6.  
  7. for i = 1, #Items do
  8. if fs.exists(Items[i]) then
  9.  
  10. else
  11. print("missing ",Items[i])
  12. Pass = false
  13. end
  14. end
  15.  
  16. if Pass == false then
  17. os.sleep(5)
  18. print("contact A administrator to Replace the files")
  19. print("shutting down")
  20. os.sleep(3)
  21. os.shutdown()
  22. end
Add Comment
Please, Sign In to add comment