Browse Source

update and fix

Votre Nom 1 year ago
parent
commit
43852145c6
2 changed files with 21 additions and 2 deletions
  1. 1 2
      options/chia.sh
  2. 20 0
      pack/clean.sh

+ 1 - 2
options/chia.sh

@@ -2,7 +2,7 @@
 set -e
 Gui=No #can be Yes No or Only
 Service=Yes
-Version=4.0
+Version=4.1
 MadMax=Yes
 GigaHorse=Yes
 BladeBit=Yes
@@ -269,7 +269,6 @@ cat <<'EOF'>> chia-miner.sh
 ### END INIT INFO
 case "$1" in
         start)
-        cd /home/wareck/miners/chia-miner/
         if pgrep -x "hpool-miner-chia" > /dev/null
         then
         sudo killall -9 hpool-miner-chia | true

+ 20 - 0
pack/clean.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+echo -n "Cleaning folder..."
+
+if [ -f chia-miner.tar.xz ]; then sudo rm chia-miner.tar.xz;fi
+if [ -f gerbera.tar.xz ]; then sudo rm gerbera.tar.xz;fi
+if [ -f start_cgminer.tar.xz ];then sudo rm start_cgminer.tar.xz;fi
+if [ -f zfsmanager-0.0.4.wbm.gz ];then sudo rm zfsmanager-0.0.4.wbm.gz;fi
+if [ -f cgminer.conf ];then sudo rm cgminer.conf;fi
+if [ -f amdgpu-install_22.10.2.50102-1_all.deb ]; then sudo rm amdgpu-install_22.10.2.50102-1_all.deb;fi
+if [ -f amdgpu-install_22.20.50200-1_all.deb ]; then sudo rm amdgpu-install_22.20.50200-1_all.deb;fi
+if [ -f amdgpu-install_5.4.50403-1_all.deb ]; then sudo rm amdgpu-install_5.4.50403-1_all.deb;fi
+if [ -f NVIDIA-Linux-x86_64-525.105.17.run ]; then sudo rm NVIDIA-Linux-x86_64-525.105.17.run ;fi
+if [ -f gpu_miners.tar.xz ];then sudo rm gpu_miners.tar.xz ;fi
+if [ -f linux-firmware.tar.xz ]; then sudo rm linux-firmware.tar.xz;fi
+if [ -f gpu-miners.tar.xz ]; then sudo rm gpu-miners.tar.xz;fi
+if [ -f flexfarmer.tar.xz ]; then sudo rm flexfarmer.tar.xz;fi
+
+Webmin=$(grep "Webmin=" ../build_cube.sh  | cut -d '"' -f 2)
+if [ -f $Webmin.tar.xz ];then sudo rm $Webmin.tar.xz;fi
+echo "Done"