-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |