|
@@ -35,10 +35,12 @@ sudo apt-get upgrade -y
|
|
|
sudo apt-get dist-upgrade -y
|
|
|
sudo apt-get install htop python3-pip openssh-server screen wakeonlan -y
|
|
|
if [ -f "~/hashcat" ];then rm ~/hashcat;fi
|
|
|
-wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/gpu-miners.tar.xz -O ~/gpu-miners.tar.xz
|
|
|
+wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/gpu-miners.tar.xz -O /home/wareck/gpu-miners.tar.xz
|
|
|
+wget -c -q --show-progress http://folivier.homelinux.org/bkpwinbuilder/pack/miners.tar.xz -O /home/wareck/miners.tar.xz
|
|
|
wget -c -q --show-progress http://folivier.homelinux.org/bkpwinbuilder/pack/hashcat.tar.xz -O ~/hashcat.tar.xz
|
|
|
wget -c -q --show-progress http://folivier.homelinux.org/bkpwinbuilder/pack/wallpaper.tar.xz -O ~/wallpaper.tar.xz
|
|
|
-cd /home/wareck/
|
|
|
+cd ~/
|
|
|
+echo ""
|
|
|
tar xvfJ wallpaper.tar.xz
|
|
|
sudo rm wallpaper.tar.xz
|
|
|
echo -n ""
|
|
@@ -99,6 +101,18 @@ fi
|
|
|
cd ~
|
|
|
tar xvfJ miners.tar.xz
|
|
|
rm miners.tar.xz
|
|
|
+
|
|
|
+if ! grep -q "modded" /usr/include/CL/cl_version.h
|
|
|
+then
|
|
|
+sudo cp /usr/include/CL/cl_version.h /home/wareck/
|
|
|
+echo "/*modded*/" > cl_version_m.h
|
|
|
+echo "#define CL_TARGET_OPENCL_VERSION 220" >> cl_version_m.h
|
|
|
+cat cl_version.h >>cl_version_m.h
|
|
|
+rm cl_version.h
|
|
|
+mv cl_version_m.h cl_version.h
|
|
|
+sudo cp /home/wareck/cl_version.h /usr/include/CL/cl_version.h
|
|
|
+fi
|
|
|
+
|
|
|
cd ~/miners
|
|
|
wget -c https://download.open-mpi.org/release/hwloc/v2.8/hwloc-2.8.0.tar.bz2
|
|
|
tar xvfj hwloc-2.8.0.tar.bz2
|
|
@@ -392,7 +406,8 @@ function outro {
|
|
|
if [ -f "/home/wareck/gpu-miners.tar.xz" ];then rm /home/wareck/gpu-miners.tar.xz;fi
|
|
|
if [ -f "/home/wareck/miners.tar.xz" ];then rm /home/wareck/miners.tar.xz;fi
|
|
|
if [ -f "/home/wareck/hashcat.tar.xz" ];then rm /home/wareck/hashcat.tar.xz;fi
|
|
|
-
|
|
|
+clear
|
|
|
+sudo rm /home/wareck/cl_version.h
|
|
|
print_centered "$(tput setaf 3)$(tput bold)"
|
|
|
print_centered "Système pret, reboot recommandé !"
|
|
|
echo "$(tput setaf 7)"
|