Your Name 5 years ago
parent
commit
1c73a7fd54
1 changed files with 2 additions and 3 deletions
  1. 2 3
      build.sh

+ 2 - 3
build.sh

@@ -1,4 +1,5 @@
 #!/bin/bash
 #!/bin/bash
+
 sudo apt-get update -y
 sudo apt-get update -y
 sudo apt-get upgrade -y
 sudo apt-get upgrade -y
 sudo apt-get install git build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libjansson-dev libncurses5-dev -y
 sudo apt-get install git build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libjansson-dev libncurses5-dev -y
@@ -106,8 +107,6 @@ echo ""
 if ! grep "bfgminer-ftb" /etc/rc.local >/dev/null
 if ! grep "bfgminer-ftb" /etc/rc.local >/dev/null
 then
 then
 sudo bash -c 'sed -i -e "s/exit 0//g" /etc/rc.local'
 sudo bash -c 'sed -i -e "s/exit 0//g" /etc/rc.local'
-sudo bash -c 'echo "su - pi -c 'screen -dmS miner /home/pi/miner_base/bfgminer-ftb/bfgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433/#skipcbcheck -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XVG -S all --set MLD:clock=600'" >>/etc/rc.local'
+sudo bash -c 'echo -e "su - pi -c \047screen -dmS miner /home/pi/miner_base/bfgminer-ftb/bfgminer --scrypt -o stratum+tcp://scrypt.eu.mine.zpool.ca:3433/#skipcbcheck -u D7zsHbdJvoL17mYWXPTDt3XfxNMwgoxuYt -p c=XVG,zap=XVG -S all --set MLD:clock=600\047" >>/etc/rc.local'
 sudo bash -c 'echo "exit 0" >>/etc/rc.local'
 sudo bash -c 'echo "exit 0" >>/etc/rc.local'
 fi
 fi
-
-echo ""