From 65235b2deed140ddd2bdd9b89b288e6177fc9796 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 28 Jan 2018 21:12:50 -1000 Subject: [PATCH] make pull --- Makefile | 3 +++ claymore.sh | 4 ---- clone-witcom.sh | 10 ++++++++++ masacoin.sh | 4 ---- 4 files changed, 13 insertions(+), 8 deletions(-) delete mode 100755 claymore.sh delete mode 100755 masacoin.sh diff --git a/Makefile b/Makefile index 7c8c823..abdb5dc 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ all: ./clone-witcom.sh +pull: + ./clone-witcom.sh update + setup: echo put stuff here diff --git a/claymore.sh b/claymore.sh deleted file mode 100755 index 316f673..0000000 --- a/claymore.sh +++ /dev/null @@ -1,4 +0,0 @@ -# ./claymore/ethdcrminer64 -epool eth-us-west1.nanopool.org:9999 -ewal 0x379c6deeedaf4d652d0c5406db7c1632a37d0f81.linuxrig1/basilarchia@gmail.com - -# ./claymore/ethdcrminer64 -epool eth-us-west1.nanopool.org:9999 -ewal 0x379c6deeedaf4d652d0c5406db7c1632a37d0f81.linuxrig1/basilarchia@gmail.com -epsw x -mode 1 -ftime 10 -./mining-binaries/claymore/ethdcrminer64 -epool eth-us-west1.nanopool.org:9999 -ewal 0x8C9f44Fa7DfC4AfF22bB950c628c3B7E518C2e86.amd580clay/basilarchia@gmail.com -epsw x -mode 1 -ftime 10 diff --git a/clone-witcom.sh b/clone-witcom.sh index 4d32949..dd78a4a 100755 --- a/clone-witcom.sh +++ b/clone-witcom.sh @@ -1,5 +1,9 @@ #!/bin/bash +ARGV1=$1 +BASEPATH=`pwd` +cd $BASEPATH + # Check to see if the directory already exists and has a working .git directory checkforgit() { @@ -8,6 +12,12 @@ checkforgit() if [ -d $path ]; then echo $path already exists + if [ "$ARGV1" = update ] ; then + cd $path + git pull + git submodule update --init --recursive + cd $BASEPATH + fi return 0 else echo $path does not exist. need to git clone here diff --git a/masacoin.sh b/masacoin.sh deleted file mode 100755 index f9b990f..0000000 --- a/masacoin.sh +++ /dev/null @@ -1,4 +0,0 @@ -HOSTNAME=`hostname` - -echo "/root/cgminer/cgminer -o stratum+tcp://us.multipool.us:3363 -u basilarchia.$HOSTNAME -p x" -/root/cgminer/cgminer -o stratum+tcp://us.multipool.us:3363 -u basilarchia.$HOSTNAME -p x