download_pack.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/bin/bash
  2. Webmin=$(grep "Webmin=" /home/wareck/Build_Cube/build_cube.sh | cut -d '"' -f 2)
  3. if [ ! -d temp ]; then
  4. mkdir temp
  5. fi
  6. cd temp
  7. if grep "driver=AMD" /home/wareck/Build_Cube/build_cube.sh
  8. then
  9. driver="AMD"
  10. else
  11. driver="NVIDIA"
  12. fi
  13. function download_copy {
  14. FILE=/home/wareck/Build_Cube/pack/$box
  15. if [ ! -f "$FILE" ]; then
  16. wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/$box
  17. cp $box /home/wareck/Build_Cube/pack/$box
  18. fi
  19. }
  20. box=cgminer.conf
  21. download_copy
  22. box=chia-miner.tar.xz
  23. download_copy
  24. box=gerbera.tar.xz
  25. download_copy
  26. box=start_cgminer.tar.xz
  27. download_copy
  28. box=$Webmin.tar.xz
  29. download_copy
  30. box=xmrig.tar.xz
  31. download_copy
  32. box=zfsmanager-0.0.4.wbm.gz
  33. download_copy
  34. box=flexfarmer.tar.xz
  35. download_copy
  36. if [ $driver = "AMD" ]
  37. then
  38. #box=amdgpu-install_22.10.2.50102-1_all.deb
  39. #download_copy
  40. #box=amdgpu-install_22.20.50200-1_all.deb
  41. #download_copy
  42. box=amdgpu-install_5.4.50403-1_all.deb
  43. download_copy
  44. fi
  45. box=linux-firmware.tar.xz
  46. download_copy
  47. box=gpu-miners.tar.xz
  48. download_copy
  49. cd ..
  50. rm -r -f temp
  51. echo -e "finish."