|
@@ -108,7 +108,7 @@ if ! [ -d /home/wareck/chia ];then mkdir /home/wareck/chia;fi
|
|
|
}
|
|
|
|
|
|
function update_ {
|
|
|
-echo -e "$(tput setaf 2)\nUpdate and install packages:$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nUpdate and install packages:$(tput sgr0)"
|
|
|
sleep 1
|
|
|
if grep "Drivers=NVIDIA" /home/wareck/Build_Cube/build_cube.sh >/dev/null
|
|
|
then
|
|
@@ -121,7 +121,7 @@ echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
function chia_plotter {
|
|
|
-echo -e "$(tput setaf 2)\nBuild Chia-Plotter (MadMax4ever) :$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nBuild Chia-Plotter (MadMax4ever) :$(tput sgr0)"
|
|
|
sleep 1
|
|
|
cd /home/wareck/chia/
|
|
|
if [ ! -d chia-plotter ]
|
|
@@ -155,7 +155,7 @@ echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
function bladebit {
|
|
|
-echo -e "$(tput setaf 2)\nBuild Bladebit v2 :$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nBuild Bladebit v2 :$(tput sgr0)"
|
|
|
sleep 1
|
|
|
cd /home/wareck/chia
|
|
|
if [ ! -d bladebit ]
|
|
@@ -171,7 +171,7 @@ echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
function gigahorse {
|
|
|
-echo -e "$(tput setaf 2)\nMadMax4ever GigaHorse:$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nMadMax4ever GigaHorse:$(tput sgr0)"
|
|
|
sleep 1
|
|
|
if [ -d /home/wareck/chia/chia-gigahorse ]
|
|
|
then
|
|
@@ -190,7 +190,7 @@ if [ -f /usr/local/bin/distrib_chia.sh ];then sudo rm /usr/local/bin/distrib_chi
|
|
|
cat <<'EOF'>> distrib_chia.sh
|
|
|
#!/bin/bash
|
|
|
echo "IP : $(hostname -I)"
|
|
|
-chia_plot_sink -p 1447 /farm/farm0/Plots-nft/ /farm/farm1/Plots-nft/ /farm/farm2/Plots-nft/ /Partage/Plots-nft/ /Exos/Plots-nft/
|
|
|
+chia_plot_sink -p 1447 /farm/farm0/Plots-nft/ /farm/farm1/Plots-nft/ /farm/farm2/Plots-nft/ /farm/farm3/Plots-nft/ /Partage/Plots-nft/
|
|
|
EOF
|
|
|
chmod +x distrib_chia.sh
|
|
|
sudo mv distrib_chia.sh /usr/local/bin/
|
|
@@ -208,7 +208,7 @@ echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
function chiapos {
|
|
|
-echo -e "$(tput setaf 2)\nBuild Chia-Pos:$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nBuild Chia-Pos:$(tput sgr0)"
|
|
|
sleep 1
|
|
|
cd /home/wareck/chia
|
|
|
if [ ! -d /home/wareck/chia/chia-pos ]
|
|
@@ -227,7 +227,7 @@ echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
function miner {
|
|
|
-echo -e "$(tput setaf 2)\nChia-Miner (hpool):$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nChia-Miner (hpool):$(tput sgr0)"
|
|
|
sleep 1
|
|
|
wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/chia-miner.tar.xz -O /home/wareck/Build_Cube/pack/chia-miner.tar.xz
|
|
|
cp /home/wareck/Build_Cube/pack/chia-miner.tar.xz /home/wareck/miners
|
|
@@ -238,7 +238,7 @@ echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
function chia_blockchain {
|
|
|
-echo -e "$(tput setaf 2)\nBuild Chia-blockchain & Gui :$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nBuild Chia-blockchain & Gui :$(tput sgr0)"
|
|
|
sleep 1
|
|
|
cd /home/wareck/chia
|
|
|
if [ ! -d /home/wareck/chia/chia-blockchain ]
|
|
@@ -256,7 +256,7 @@ echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
function service_ {
|
|
|
-echo -e "$(tput setaf 2)\nInstall chia-miner service (hpool) :$(tput sgr0)"
|
|
|
+echo -e "$(tput setaf 10)\nInstall chia-miner service (hpool) :$(tput sgr0)"
|
|
|
sleep 1
|
|
|
echo "Generation du fichier /etc/init.d/chia-miner"
|
|
|
cat <<'EOF'>> chia-miner.sh
|
|
@@ -291,9 +291,19 @@ sudo rm chia-miner.sh
|
|
|
echo -e "\e[97mDone.\e[0m"
|
|
|
}
|
|
|
|
|
|
+function cmake_ {
|
|
|
+if [ $BladeBit = "YES" ]
|
|
|
+then
|
|
|
+pids=""
|
|
|
+./tools/_cmake.sh & pids="$pids $!"
|
|
|
+wait $pids
|
|
|
+fi
|
|
|
+}
|
|
|
+
|
|
|
simplify_config
|
|
|
intro_
|
|
|
update_
|
|
|
+cmake_
|
|
|
case $Gui in
|
|
|
NO|YES)
|
|
|
if [ $GigaHorse = "YES" ];then gigahorse;fi
|
|
@@ -301,6 +311,7 @@ NO|YES)
|
|
|
if [ $BladeBit = "YES" ];then bladebit;fi
|
|
|
if [ $ChiaPos = "YES" ];then chiapos;fi
|
|
|
if [ $Service = "YES" ];then service_;fi
|
|
|
+ miner
|
|
|
;;
|
|
|
esac
|
|
|
case $Gui in
|