download_pack.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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'|head -n1 )
  10. Cuda=$(grep "Cuda=" /home/wareck/Build_Cube/build_cube.sh | sed 's/Cuda=//g'|head -n1 )
  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. if [ $driver = "AMD" ]
  39. then
  40. box=amdgpu-install_5.4.50403-1_all.deb
  41. download_copy
  42. fi
  43. box=linux-firmware.tar.xz
  44. download_copy
  45. box=gpu-miners.tar.xz
  46. download_copy
  47. cd ..
  48. rm -r -f temp
  49. echo -e "finish."