clean.sh 1.3 KB

123456789101112131415161718192021
  1. #!/bin/bash
  2. echo -n "Cleaning folder..."
  3. if [ -f chia-miner.tar.xz ]; then sudo rm chia-miner.tar.xz;fi
  4. if [ -f gerbera.tar.xz ]; then sudo rm gerbera.tar.xz;fi
  5. if [ -f start_cgminer.tar.xz ];then sudo rm start_cgminer.tar.xz;fi
  6. if [ -f zfsmanager-0.0.4.wbm.gz ];then sudo rm zfsmanager-0.0.4.wbm.gz;fi
  7. if [ -f cgminer.conf ];then sudo rm cgminer.conf;fi
  8. if [ -f amdgpu-install_22.10.2.50102-1_all.deb ]; then sudo rm amdgpu-install_22.10.2.50102-1_all.deb;fi
  9. if [ -f amdgpu-install_22.20.50200-1_all.deb ]; then sudo rm amdgpu-install_22.20.50200-1_all.deb;fi
  10. if [ -f amdgpu-install_5.4.50403-1_all.deb ]; then sudo rm amdgpu-install_5.4.50403-1_all.deb;fi
  11. if [ -f NVIDIA-Linux-x86_64-525.105.17.run ]; then sudo rm NVIDIA-Linux-x86_64-525.105.17.run ;fi
  12. if [ -f gpu_miners.tar.xz ];then sudo rm gpu_miners.tar.xz ;fi
  13. if [ -f linux-firmware.tar.xz ]; then sudo rm linux-firmware.tar.xz;fi
  14. if [ -f gpu-miners.tar.xz ]; then sudo rm gpu-miners.tar.xz;fi
  15. if [ -f flexfarmer.tar.xz ]; then sudo rm flexfarmer.tar.xz;fi
  16. if [ -f cuda_11.8.0_520.61.05_linux.run ];then sudo rm cuda_11.8.0_520.61.05_linux.run;fi
  17. if [ -f chia-x-proxy.tar.xz ]; then sudo rm chia-x-proxy.tar.xz;fi
  18. Webmin=$(grep "Webmin=" ../build_cube.sh | cut -d '"' -f 2)
  19. if [ -f $Webmin.tar.xz ];then sudo rm $Webmin.tar.xz;fi
  20. echo "Done"