setup-plaintext.sh 328 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. if [ "$(nproc)" -eq "80" ]
  3. then
  4. threadCount=24
  5. fi
  6. if [ "$(nproc)" -eq "28" ]
  7. then
  8. threadCount=8
  9. fi
  10. if [ "$(nproc)" -eq "4" ]
  11. then
  12. threadCount=2
  13. fi
  14. if [ -z "$threadCount" ]
  15. then
  16. echo "Invalid thread count ($(nproc)), using default"
  17. threadCount=2
  18. fi
  19. source run-linux.sh plaintext $threadCount