Skip to content

Commit

Permalink
derominers first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freQniK committed Oct 25, 2021
1 parent f2e7c71 commit 43b201d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
38 changes: 38 additions & 0 deletions androidxmrigcc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash


CCDIR="/data/data/com.termux/files/home/CC"
GITDIR="/data/data/com.termux/files/home/CC/git"

git_and_build_hwloc() {
if [ ! -d "$GITDIR" ]; then
mkdir "$GITDIR"
fi

cd "$GITDIR"
git clone https://github.com/open-mpi/hwloc
cd hwloc
./autogen.sh && ./configure && make

}

if [ ! -d "$CCDIR" ]; then
mkdir "$CCDIR"
fi
echo "We need to change the termux repo. Select (grimler) for best results on main repo"
echo -ne "(Press enter to continue): "
read blah
sleep 1
termux-change-repo
apt-get -q -y install autoconf automake cmake git libtool
git_and_build_hwloc

cd "$GITDIR" && git clone https://github.com/freQniK/xmrigCC
cd xmrigCC && mkdir build && cd build
cmake .. -DHWLOC_INCLUDE_DIR=$GITDIR/hwloc/include -DHWLOC_LIBRARY=$GITDIR/hwloc/hwloc/.libs/libhwloc.so
make
echo "Now run: ./derominers.sh"
echo "bye."



18 changes: 18 additions & 0 deletions derominers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

if [[ -f "worker_name" ]]; then
worker_name=`cat worker_name`
else
echo -ne "Enter Worker Name (no spaces): "
read worker_name
echo "$worker_name" > worker_name
fi

if [[ -f "dero_wallet_address" ]]; then
dero_wallet_address=`cat dero_wallet_address`
else
echo -ne "DERO Wallet Address: "
read dero_wallet_address
echo "$dero_wallet_address" > dero_wallet_address
fi
./CC/git/xmrigCC/build/xmrigDaemon -o miners.dero.network:3333 -u $dero_wallet_address -p $worker_name -a astrobwt -k

0 comments on commit 43b201d

Please sign in to comment.