|
@@ -1,14 +1,19 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
set -e
|
|
set -e
|
|
-script_version="1.50"
|
|
|
|
-rdate="24/12/2018"
|
|
|
|
|
|
+script_version="1.51"
|
|
|
|
+rdate="22/01/2019"
|
|
remote_folder="http://wareck.free.fr/openrig"
|
|
remote_folder="http://wareck.free.fr/openrig"
|
|
|
|
+lsb_v="`lsb_release -r | awk '{print$2; exit}'`"
|
|
|
|
+lsb_r="`lsb_release -d | awk '{print$2" "$3}'`"
|
|
|
|
+
|
|
#### OPTIONS ####
|
|
#### OPTIONS ####
|
|
host_name="Miner1"
|
|
host_name="Miner1"
|
|
|
|
+
|
|
#choose one of this drivers
|
|
#choose one of this drivers
|
|
#Drivers="17.50"
|
|
#Drivers="17.50"
|
|
#Drivers="18.20"
|
|
#Drivers="18.20"
|
|
Drivers="18.40"
|
|
Drivers="18.40"
|
|
|
|
+#Drivers="18.50" #ubuntu 18.04
|
|
|
|
|
|
ROCM_="NO" #rcom compute
|
|
ROCM_="NO" #rcom compute
|
|
ETHMine="YES"
|
|
ETHMine="YES"
|
|
@@ -24,9 +29,11 @@ swap_size="0" # 0/4/8/16 Go
|
|
#script_version=`grep version version.txt | awk '{ print $2 }'`
|
|
#script_version=`grep version version.txt | awk '{ print $2 }'`
|
|
#rdate=`grep release version.txt | awk '{ print $2 }'`
|
|
#rdate=`grep release version.txt | awk '{ print $2 }'`
|
|
|
|
|
|
|
|
+if [ $lsb_v = "18.04" ]; then Drivers="18.50" && Lyra2z="NO" && ROCM_="NO" ;fi
|
|
if [ $Drivers = "17.50" ]; then amd_driver_v="17.50-511655";fi
|
|
if [ $Drivers = "17.50" ]; then amd_driver_v="17.50-511655";fi
|
|
if [ $Drivers = "18.20" ]; then amd_driver_v="18.20-606296";fi
|
|
if [ $Drivers = "18.20" ]; then amd_driver_v="18.20-606296";fi
|
|
if [ $Drivers = "18.40" ]; then amd_driver_v="18.40-673869";fi
|
|
if [ $Drivers = "18.40" ]; then amd_driver_v="18.40-673869";fi
|
|
|
|
+if [ $Drivers = "18.50" ]; then amd_driver_v="18.50-708488";fi
|
|
|
|
|
|
if [ $UID -ne 0 ]
|
|
if [ $UID -ne 0 ]
|
|
then
|
|
then
|
|
@@ -52,6 +59,7 @@ for j in {1..36}; do echo -e -n "\u2550";done
|
|
echo -e -n "\u255D\e[0m"
|
|
echo -e -n "\u255D\e[0m"
|
|
echo
|
|
echo
|
|
echo
|
|
echo
|
|
|
|
+if [ $lsb_v = "18.04" ]; then echo -e "\e[97m Ubuntu 18.04 \e[0m\e[97m";fi
|
|
if [ $ROCM_ = "YES" ]; then echo -e "\e[94m AMD DRIVER + ROCm Compute firmware \e[0m\e[97m";fi
|
|
if [ $ROCM_ = "YES" ]; then echo -e "\e[94m AMD DRIVER + ROCm Compute firmware \e[0m\e[97m";fi
|
|
if [ $ROCM_ = "NO" ]; then echo -e "\e[94m AMD GPU PRO Drivers $amd_driver_v\e[0m\e[97m";fi
|
|
if [ $ROCM_ = "NO" ]; then echo -e "\e[94m AMD GPU PRO Drivers $amd_driver_v\e[0m\e[97m";fi
|
|
if [ $ETHMine = "YES" ]; then echo -e "\e[97m +\e[91m Etherminer \e[0m\e[97m";fi
|
|
if [ $ETHMine = "YES" ]; then echo -e "\e[97m +\e[91m Etherminer \e[0m\e[97m";fi
|
|
@@ -82,11 +90,12 @@ sudo sed -i -e "s/quiet splash/text/g" /etc/default/grub
|
|
sudo sed -i -e 's#GRUB_CMDLINE_LINUX=""#GRUB_CMDLINE_LINUX="amddgpu.vm_fragment_size=9"#g' /etc/default/grub
|
|
sudo sed -i -e 's#GRUB_CMDLINE_LINUX=""#GRUB_CMDLINE_LINUX="amddgpu.vm_fragment_size=9"#g' /etc/default/grub
|
|
sudo update-grub2
|
|
sudo update-grub2
|
|
sudo apt dist-upgrade -y
|
|
sudo apt dist-upgrade -y
|
|
-sudo apt-get remove linux-image-4.4.0-116* linux-headers-4.4.0-116* -y
|
|
|
|
-sudo apt install ethereum git screen htop curl ntp pv git cmake libcryptopp-dev libleveldb-dev libjsoncpp-dev \
|
|
|
|
|
|
+if ! [ $lsb_v = "18.04" ];then sudo apt-get remove linux-image-4.4.0-116* linux-headers-4.4.0-116* -y ;fi
|
|
|
|
+sudo apt install ethereum git screen htop curl ntp pv git cmake libleveldb-dev libjsoncpp-dev \
|
|
build-essential libcurl4-gnutls-dev libboost-all-dev libgmp-dev \
|
|
build-essential libcurl4-gnutls-dev libboost-all-dev libgmp-dev \
|
|
libreadline-dev libmicrohttpd-dev libjansson-dev libgmp-dev libssl-dev unzip python-nfqueue python-scapy mesa-common-dev -y
|
|
libreadline-dev libmicrohttpd-dev libjansson-dev libgmp-dev libssl-dev unzip python-nfqueue python-scapy mesa-common-dev -y
|
|
-sudo apt-get install --install-recommends xserver-xorg-hwe-16.04 -y
|
|
|
|
|
|
+if ! [ $lsb_v = "18.04" ];then sudo apt install libcryptopp-dev -y ;fi
|
|
|
|
+if ! [ $lsb_v = "18.04" ];then sudo apt-get install --install-recommends xserver-xorg-hwe-16.04 -y; fi
|
|
|
|
|
|
if [ $ROCM_ = "YES" ]
|
|
if [ $ROCM_ = "YES" ]
|
|
then
|
|
then
|
|
@@ -104,17 +113,15 @@ if [ $ROCM_ = "YES" ]
|
|
fi
|
|
fi
|
|
|
|
|
|
echo -e "\n\e[95mInstall AMD Drivers :\e[0m"
|
|
echo -e "\n\e[95mInstall AMD Drivers :\e[0m"
|
|
-mkdir /home/work/tempo |true
|
|
|
|
|
|
+if ! [ -d /home/work/tempo ];then mkdir /home/work/tempo ; fi
|
|
cd /home/work/tempo
|
|
cd /home/work/tempo
|
|
-if [ $Drivers = "18.20" ]
|
|
|
|
|
|
+
|
|
|
|
+if [ $Drivers = "17.50" ]
|
|
then
|
|
then
|
|
- echo "Download amdgpu-pro-18.20-606296.tar.xz"
|
|
|
|
- #curl -sf http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.50-511655.tar.xz | tar xvJ
|
|
|
|
- wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-18.20-606296.tar.xz
|
|
|
|
- tar xvfJ amdgpu-pro-18.20-606296.tar.xz
|
|
|
|
- rm amdgpu-pro-18.20-606296.tar.xz
|
|
|
|
- #cd amdgpu-pro-17.50-511655
|
|
|
|
- cd amdgpu-pro-18.20-606296
|
|
|
|
|
|
+ wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.50-511655.tar.xz
|
|
|
|
+ tar xvfJ amdgpu-pro-17.50-511655.tar.xz
|
|
|
|
+ rm amdgpu-pro-17.50-511655.tar.xz
|
|
|
|
+ cd amdgpu-pro-17.50-511655
|
|
if [ $ROCM_ = "YES" ]
|
|
if [ $ROCM_ = "YES" ]
|
|
then
|
|
then
|
|
sed -i -e "s/amdgpu-pro-dkms libdrm2-amdgpu-pro/libdrm2-amdgpu-pro/g" amdgpu-pro-install
|
|
sed -i -e "s/amdgpu-pro-dkms libdrm2-amdgpu-pro/libdrm2-amdgpu-pro/g" amdgpu-pro-install
|
|
@@ -124,12 +131,13 @@ if [ $Drivers = "18.20" ]
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
|
|
-if [ $Drivers = "17.50" ]
|
|
|
|
|
|
+if [ $Drivers = "18.20" ]
|
|
then
|
|
then
|
|
- wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.50-511655.tar.xz
|
|
|
|
- tar xvfJ amdgpu-pro-17.50-511655.tar.xz
|
|
|
|
- rm amdgpu-pro-17.50-511655.tar.xz
|
|
|
|
- cd amdgpu-pro-17.50-511655
|
|
|
|
|
|
+ echo "Download amdgpu-pro-18.20-606296.tar.xz"
|
|
|
|
+ wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-18.20-606296.tar.xz
|
|
|
|
+ tar xvfJ amdgpu-pro-18.20-606296.tar.xz
|
|
|
|
+ rm amdgpu-pro-18.20-606296.tar.xz
|
|
|
|
+ cd amdgpu-pro-18.20-606296
|
|
if [ $ROCM_ = "YES" ]
|
|
if [ $ROCM_ = "YES" ]
|
|
then
|
|
then
|
|
sed -i -e "s/amdgpu-pro-dkms libdrm2-amdgpu-pro/libdrm2-amdgpu-pro/g" amdgpu-pro-install
|
|
sed -i -e "s/amdgpu-pro-dkms libdrm2-amdgpu-pro/libdrm2-amdgpu-pro/g" amdgpu-pro-install
|
|
@@ -142,19 +150,27 @@ fi
|
|
if [ $Drivers = "18.40" ]
|
|
if [ $Drivers = "18.40" ]
|
|
then
|
|
then
|
|
echo "Download amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz"
|
|
echo "Download amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz"
|
|
- #curl -sf http://wareck.free.fr/grinder/drivers/amdgpu-pro-17.50-511655.tar.xz | tar xvJ
|
|
|
|
wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
|
|
wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
|
|
tar xvfJ amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
|
|
tar xvfJ amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
|
|
rm amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
|
|
rm amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz
|
|
- #cd amdgpu-pro-17.50-511655
|
|
|
|
cd amdgpu-pro-18.40-673869-ubuntu-16.04
|
|
cd amdgpu-pro-18.40-673869-ubuntu-16.04
|
|
./amdgpu-pro-install --pro --opencl=legacy -y
|
|
./amdgpu-pro-install --pro --opencl=legacy -y
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+if [ $Drivers = "18.50" ]
|
|
|
|
+ then
|
|
|
|
+ echo "Download amdgpu-pro-18.40-673869-ubuntu-16.04.tar.xz"
|
|
|
|
+ #wget -c http://wareck.free.fr/grinder/drivers/amdgpu-pro-18.50-708488-ubuntu-18.04.tar.xz
|
|
|
|
+ #tar xvfJ amdgpu-pro-18.50-708488-ubuntu-18.04.tar.xz
|
|
|
|
+ #rm amdgpu-pro-18.50-708488-ubuntu-18.04.tar.xz
|
|
|
|
+ #cd amdgpu-pro-18.50-708488-ubuntu-18.04
|
|
|
|
+#./amdgpu-pro-install --pro --opencl=legacy -y
|
|
|
|
+fi
|
|
|
|
+
|
|
echo -e "\n\e[95mInstall AMD SDK :\e[0m"
|
|
echo -e "\n\e[95mInstall AMD SDK :\e[0m"
|
|
cd /home/work/tempo/
|
|
cd /home/work/tempo/
|
|
-curl -f http://wareck.free.fr/grinder/drivers/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 | tar xvj
|
|
|
|
-./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh
|
|
|
|
|
|
+#curl -f http://wareck.free.fr/grinder/drivers/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 | tar xvj
|
|
|
|
+#./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh
|
|
cd /opt/
|
|
cd /opt/
|
|
if [ -d ADL_SDK ]; then rm -r /opt/ADL_SDK; fi
|
|
if [ -d ADL_SDK ]; then rm -r /opt/ADL_SDK; fi
|
|
mkdir ADL_SDK
|
|
mkdir ADL_SDK
|
|
@@ -183,16 +199,10 @@ if [ $ETHMine = "YES" ]
|
|
then
|
|
then
|
|
echo -e "\n\e[95mInstall Ethminer :\e[0m"
|
|
echo -e "\n\e[95mInstall Ethminer :\e[0m"
|
|
cd ~
|
|
cd ~
|
|
- if [ ! -d cpp_ethminer ]
|
|
|
|
- then
|
|
|
|
- git clone -n https://github.com/ethereum-mining/ethminer.git cpp_ethminer
|
|
|
|
- cd cpp_ethminer
|
|
|
|
- git checkout 2200dca33d35273fb2a7843a7d313a9a31bcd246
|
|
|
|
- else
|
|
|
|
- cd cpp_ethminer
|
|
|
|
- git pull
|
|
|
|
- cd ~
|
|
|
|
- fi
|
|
|
|
|
|
+if [ -d cpp_ethminer ]; then rm -r cpp_ethminer;fi
|
|
|
|
+git clone -n https://github.com/ethereum-mining/ethminer.git cpp_ethminer
|
|
|
|
+cd cpp_ethminer
|
|
|
|
+git checkout 2200dca33d35273fb2a7843a7d313a9a31bcd246
|
|
cd ~/cpp_ethminer
|
|
cd ~/cpp_ethminer
|
|
git submodule update --init --recursive
|
|
git submodule update --init --recursive
|
|
mkdir build |true
|
|
mkdir build |true
|
|
@@ -200,7 +210,8 @@ cd build
|
|
cmake .. -DETHASHCUDA=OFF -DETHASHCL=ON
|
|
cmake .. -DETHASHCUDA=OFF -DETHASHCL=ON
|
|
make
|
|
make
|
|
cd ~
|
|
cd ~
|
|
-ln -s cpp_ethminer/build/ethminer/ethminer ethminer | true
|
|
|
|
|
|
+if [ -f ~/ethminer ]; then rm ~/ethminer;fi
|
|
|
|
+ln -s cpp_ethminer/build/ethminer/ethminer ethminer |true
|
|
fi
|
|
fi
|
|
cd /tmp
|
|
cd /tmp
|
|
wget http://wareck.free.fr/grinder/cpp_ethminer_kernel.tar.xz
|
|
wget http://wareck.free.fr/grinder/cpp_ethminer_kernel.tar.xz
|
|
@@ -239,14 +250,15 @@ cd ~
|
|
then
|
|
then
|
|
sudo -u work curl -sf http://wareck.free.fr/openrig/miners/sgminer-timetravel.tar.xz | tar xvJ
|
|
sudo -u work curl -sf http://wareck.free.fr/openrig/miners/sgminer-timetravel.tar.xz | tar xvJ
|
|
cd ~
|
|
cd ~
|
|
- echo -e "\e[97mDone !\e[0m"
|
|
|
|
fi
|
|
fi
|
|
|
|
+echo -e "\e[97mDone !\e[0m"
|
|
fi
|
|
fi
|
|
|
|
|
|
if [ $Lyra2z = "YES" ]
|
|
if [ $Lyra2z = "YES" ]
|
|
then
|
|
then
|
|
echo -e "\n\e[95mInstall Lyra2Z GPU Miner (experimental):\e[0m"
|
|
echo -e "\n\e[95mInstall Lyra2Z GPU Miner (experimental):\e[0m"
|
|
cd ~
|
|
cd ~
|
|
|
|
+if [ -d sgminer-lyra2z ]; then rm -r sgminer-lyra2z ;fi
|
|
git clone https://github.com/wareck/sgminer-lyra2z.git
|
|
git clone https://github.com/wareck/sgminer-lyra2z.git
|
|
cd ~/sgminer-lyra2z
|
|
cd ~/sgminer-lyra2z
|
|
git pull
|
|
git pull
|
|
@@ -263,6 +275,7 @@ if [ $SGMINER_x16r = "YES" ]
|
|
then
|
|
then
|
|
echo -e "\n\e[95mInstall Sgminer-x16r :\e[0m"
|
|
echo -e "\n\e[95mInstall Sgminer-x16r :\e[0m"
|
|
cd ~
|
|
cd ~
|
|
|
|
+if [ -d sgminer-x16r ]; then rm -r sgminer-x16r;fi
|
|
git clone https://github.com/wareck/sgminer-x16r.git
|
|
git clone https://github.com/wareck/sgminer-x16r.git
|
|
cd ~/sgminer-x16r
|
|
cd ~/sgminer-x16r
|
|
git pull
|
|
git pull
|
|
@@ -279,6 +292,7 @@ if [ $XMRIG_AMD = "YES" ]
|
|
then
|
|
then
|
|
echo -e "\n\e[95mInstall xmrig-amd:\e[0m"
|
|
echo -e "\n\e[95mInstall xmrig-amd:\e[0m"
|
|
cd ~
|
|
cd ~
|
|
|
|
+if [ -d xmrig_amd ]; then rm -r xmrig_amd ; fi
|
|
git clone https://github.com/xmrig/xmrig-amd.git xmrig_amd
|
|
git clone https://github.com/xmrig/xmrig-amd.git xmrig_amd
|
|
cd /tmp/
|
|
cd /tmp/
|
|
if ! [ -d libuv ]; then git clone https://github.com/libuv/libuv.git ;fi
|
|
if ! [ -d libuv ]; then git clone https://github.com/libuv/libuv.git ;fi
|
|
@@ -316,7 +330,7 @@ cd build
|
|
cmake ..
|
|
cmake ..
|
|
make -j $(nproc)
|
|
make -j $(nproc)
|
|
cd ~
|
|
cd ~
|
|
-if ! [ -f xmrig-amd ]; then ln -s xmrig_amd/build/xmrig-amd xmrig-amd;fi
|
|
|
|
|
|
+if ! [ -f xmrig-amd ]; then ln -s xmrig_amd/build/xmrig-amd xmrig-amd ;fi
|
|
echo "Done."
|
|
echo "Done."
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -332,6 +346,7 @@ cd hwloc-1.11.8
|
|
make -j $(nproc)
|
|
make -j $(nproc)
|
|
sudo make install
|
|
sudo make install
|
|
cd ~
|
|
cd ~
|
|
|
|
+if [ -d xmr_stak ]; then rm -r xmr_stak ;fi
|
|
git clone https://github.com/fireice-uk/xmr-stak.git xmr_stak
|
|
git clone https://github.com/fireice-uk/xmr-stak.git xmr_stak
|
|
cd xmr_stak
|
|
cd xmr_stak
|
|
sudo ln -s /opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so /usr/lib/libOpenCL.so.1 | true
|
|
sudo ln -s /opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so /usr/lib/libOpenCL.so.1 | true
|
|
@@ -342,7 +357,7 @@ cmake .. -DCPU_ENABLE=OFF -DHWLOC_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF -DCMAKE_LIN
|
|
-DOpenCL_LIBRARY=/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/ -DXMR-STAK_COMPILE=generic
|
|
-DOpenCL_LIBRARY=/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/ -DXMR-STAK_COMPILE=generic
|
|
make -j $(nproc)
|
|
make -j $(nproc)
|
|
cd ~
|
|
cd ~
|
|
-ln -s xmr_stak/build/bin/xmr-stak xmr-stak
|
|
|
|
|
|
+if ! [ -f ~/xmr-stak ];then ln -s xmr_stak/build/bin/xmr-stak xmr-stak; fi
|
|
sudo cp xmr_stak/build/bin/libxmrstak_opencl_backend.so /lib/
|
|
sudo cp xmr_stak/build/bin/libxmrstak_opencl_backend.so /lib/
|
|
cd ~
|
|
cd ~
|
|
echo "Done"
|
|
echo "Done"
|
|
@@ -358,23 +373,28 @@ else
|
|
git clone https://github.com/wareck/remove_miner_fees.git
|
|
git clone https://github.com/wareck/remove_miner_fees.git
|
|
chown -R work remove_miner_fees
|
|
chown -R work remove_miner_fees
|
|
fi
|
|
fi
|
|
-chmod 777 /etc/rc.local
|
|
|
|
|
|
|
|
-if ! grep --quiet "/home/work/remove_miner_fees" /etc/rc.local
|
|
|
|
|
|
+if ! [ -f /etc/rc.local ]
|
|
then
|
|
then
|
|
-sed -i "s/exit 0//g" /etc/rc.local
|
|
|
|
-RC_LOCAL_CMD0="#python /home/work/remove_miner_fees/remove_mining_fees.py &"
|
|
|
|
-RC_LOCAL_CMD1="#python /home/work/remove_miner_fees/zcach.py &"
|
|
|
|
-RC_LOCAL_CMD2="#python /home/work/remove_miner_fees/hush.py &"
|
|
|
|
-RC_LOCAL_CMD3="#python /home/work/remove_miner_fees/ubiq.py &"
|
|
|
|
-RC_LOCAL_CMD4="#python /home/work/remove_miner_fees/soilcoin.py &"
|
|
|
|
-echo $RC_LOCAL_CMD0 >>/etc/rc.local
|
|
|
|
-echo $RC_LOCAL_CMD1 >>/etc/rc.local
|
|
|
|
-echo $RC_LOCAL_CMD2 >>/etc/rc.local
|
|
|
|
-echo $RC_LOCAL_CMD3 >>/etc/rc.local
|
|
|
|
-echo $RC_LOCAL_CMD4 >>/etc/rc.local
|
|
|
|
-echo "exit 0" >>/etc/rc.local
|
|
|
|
|
|
+printf '%s\n' '#!/bin/bash' 'exit 0' | sudo tee -a /etc/rc.local
|
|
|
|
+sudo chmod +x /etc/rc.local
|
|
fi
|
|
fi
|
|
|
|
+chmod 777 /etc/rc.local
|
|
|
|
+ if ! grep --quiet "/home/work/remove_miner_fees" /etc/rc.local
|
|
|
|
+ then
|
|
|
|
+ sed -i "s/exit 0//g" /etc/rc.local
|
|
|
|
+ RC_LOCAL_CMD0="#python /home/work/remove_miner_fees/remove_mining_fees.py &"
|
|
|
|
+ RC_LOCAL_CMD1="#python /home/work/remove_miner_fees/zcach.py &"
|
|
|
|
+ RC_LOCAL_CMD2="#python /home/work/remove_miner_fees/hush.py &"
|
|
|
|
+ RC_LOCAL_CMD3="#python /home/work/remove_miner_fees/ubiq.py &"
|
|
|
|
+ RC_LOCAL_CMD4="#python /home/work/remove_miner_fees/soilcoin.py &"
|
|
|
|
+ echo $RC_LOCAL_CMD0 >>/etc/rc.local
|
|
|
|
+ echo $RC_LOCAL_CMD1 >>/etc/rc.local
|
|
|
|
+ echo $RC_LOCAL_CMD2 >>/etc/rc.local
|
|
|
|
+ echo $RC_LOCAL_CMD3 >>/etc/rc.local
|
|
|
|
+ echo $RC_LOCAL_CMD4 >>/etc/rc.local
|
|
|
|
+ echo "exit 0" >>/etc/rc.local
|
|
|
|
+ fi
|
|
echo -e "\e[97mDone !\e[0m"
|
|
echo -e "\e[97mDone !\e[0m"
|
|
|
|
|
|
echo -e "\n\e[95mInstall AutoStart:\e[0m"
|
|
echo -e "\n\e[95mInstall AutoStart:\e[0m"
|
|
@@ -404,9 +424,8 @@ echo "exit 0" >>/etc/rc.local
|
|
fi
|
|
fi
|
|
echo -e "\e[97mDone !\e[0m"
|
|
echo -e "\e[97mDone !\e[0m"
|
|
|
|
|
|
-
|
|
|
|
cd /home/work/
|
|
cd /home/work/
|
|
-sudo rm -r tempo | true
|
|
|
|
|
|
+sudo rm -r tempo
|
|
|
|
|
|
echo -e "\n\e[95mMessage of the day mod :\e[0m"
|
|
echo -e "\n\e[95mMessage of the day mod :\e[0m"
|
|
rm /etc/update-motd.d/00-header | true
|
|
rm /etc/update-motd.d/00-header | true
|
|
@@ -443,7 +462,6 @@ EOF
|
|
fi
|
|
fi
|
|
echo -e "\e[97mDone !\e[0m"
|
|
echo -e "\e[97mDone !\e[0m"
|
|
|
|
|
|
-
|
|
|
|
echo -e "\n\e[95mBuilding Swapfile :\e[0m"
|
|
echo -e "\n\e[95mBuilding Swapfile :\e[0m"
|
|
if ! grep -q "swapfile" /etc/fstab ; then
|
|
if ! grep -q "swapfile" /etc/fstab ; then
|
|
case $swap_size in
|
|
case $swap_size in
|
|
@@ -495,4 +513,3 @@ echo -e -n "$i "
|
|
sleep 1
|
|
sleep 1
|
|
done
|
|
done
|
|
reboot
|
|
reboot
|
|
-
|
|
|