download_pack.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #!/bin/bash
  2. Webmin=${Webmin^^}
  3. MadMax=${MadMax^^}
  4. GigaHorse=${GigaHorse^^}
  5. BladeBit=${BladeBit^^}
  6. ChiaPos=${ChiaPos^^}
  7. Miner=${Miner^^}
  8. Webmin=$(grep "Webmin=" /home/wareck/Build_Cube/build_cube.sh | cut -d '"' -f 2)
  9. driver=$(grep "driver=" /home/wareck/Build_Cube/build_cube.sh | sed 's/driver=//g')
  10. Cuda=$(grep "Cuda=" /home/wareck/Build_Cube/build_cube.sh | sed 's/Cuda=//g')
  11. driver=${driver^^}
  12. Cuda=${Cuda^^}
  13. if [ ! -d temp ]; then
  14. mkdir temp
  15. fi
  16. cd temp
  17. function download_copy {
  18. FILE=/home/wareck/Build_Cube/pack/$box
  19. if [ ! -f "$FILE" ]; then
  20. wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/$box
  21. cp $box /home/wareck/Build_Cube/pack/$box
  22. fi
  23. }
  24. box=cgminer.conf
  25. download_copy
  26. box=chia-miner.tar.xz
  27. download_copy
  28. box=gerbera.tar.xz
  29. download_copy
  30. box=start_cgminer.tar.xz
  31. download_copy
  32. box=$Webmin.tar.xz
  33. download_copy
  34. box=xmrig.tar.xz
  35. download_copy
  36. box=zfsmanager-0.0.4.wbm.gz
  37. download_copy
  38. box=flexfarmer.tar.xz
  39. download_copy
  40. if [ $driver = "AMD" ]
  41. then
  42. box=amdgpu-install_5.4.50403-1_all.deb
  43. download_copy
  44. fi
  45. if [ $Cuda = "YES" ]
  46. then
  47. #box=cuda_11.8.0_520.61.05_linux.run
  48. #box=cuda_12.2.2_535.104.05_linux.run
  49. #download_copy
  50. box=chia-x-proxy.tar.xz
  51. download_copy
  52. fi
  53. box=linux-firmware.tar.xz
  54. download_copy
  55. box=gpu-miners.tar.xz
  56. download_copy
  57. cd ..
  58. rm -r -f temp
  59. echo -e "finish."