Votre Nom 1 year ago
parent
commit
0c154b273b
2 changed files with 6 additions and 4 deletions
  1. 1 0
      options/chia.sh
  2. 5 4
      other_arch/centos.sh

+ 1 - 0
options/chia.sh

@@ -177,6 +177,7 @@ fi
 cd /home/wareck/chia/bladebit/
 if [ ! -d build ];then mkdir build;fi
 cd build
+sed -i "s/FatalIf( cfg.compressionLevel >/\/\/FatalIf( cfg.compressionLevel/g" /home/wareck/chia/bladebit/src/main.cpp
 cmake ..
 make -j6
 cat <<'EOF'>> cuda.sh

+ 5 - 4
other_arch/centos.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-Version=2.4
+Version=2.6
 
 #if (( $EUID != 0 )); then
 #   echo -e "$(tput setaf 11)This must be run as root. Try 'sudo $0'.$(tput sgr0)"
@@ -163,7 +163,8 @@ cd /home/wareck
 git clone https://github.com/lvmteam/lvm2.git
 cd /home/wareck/lvm2
 ./configure
-make -j 32
+sleep 5
+make -j$((`nproc`))
 sudo make install
 sudo ldconfig
 echo -e "Done"
@@ -204,7 +205,7 @@ tmpfs /ramdisk tmpfs defaults,size=110G 0 0
 EOF
 sudo cp /tmp/fstab /etc/fstab
 fi
-if [ ! -r /raid/ ];then mkdir /raid/;fi
+if [ ! -r /raid/ ];then sudo mkdir /raid/;fi
 echo -e "Done"
 }
 
@@ -247,7 +248,7 @@ update_
 lvm2_
 drive_
 wol_
-tigervnc_
+#tigervnc_
 chia_
 miner_
 config_