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
#!/bin/bash | |
CONFIG_FILE="/root/config.txt" | |
source $CONFIG_FILE | |
export DISPLAY=:0 | |
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] | |
then | |
echo "Missing variable" | |
exit 1 |
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
#!/bin/bash | |
CONFIG_FILE="/root/config.txt" | |
source $CONFIG_FILE | |
export DISPLAY=:0 | |
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] | |
then | |
echo "Missing variable" | |
exit 1 |
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
#!/bin/bash | |
CONFIG_FILE="/root/config.txt" | |
source $CONFIG_FILE | |
export DISPLAY=:0 | |
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] | |
then | |
echo "Missing variable" | |
exit 1 |
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
#!/bin/bash | |
CONFIG_FILE="/root/config.txt" | |
source $CONFIG_FILE | |
export DISPLAY=:0 | |
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] | |
then | |
echo "Missing variable" | |
exit 1 |
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
#!/bin/bash | |
if [ ! -f /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old ]; then mv /root/miner_org/ccminer-tpruvot-v2.1/ccminer /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old | |
cat <<\EOF >/root/miner_org/ccminer-tpruvot-v2.1/ccminer | |
#!/bin/bash | |
LD_PRELOAD=/root/miner/ccminer-tpruvot-v2.1/libcudart.so.9.0 /root/miner/ccminer-tpruvot-v2.1/ccminer-bin "$@" | |
EOF | |
chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer | |
cd /root/miner_org/ccminer-tpruvot-v2.1/ | |
wget https://www.dropbox.com/s/tycqn775d8cet4q/ccminer-bin.gz?dl=0 -O /root/miner_org/ccminer-tpruvot-v2.1/ccminer-bin.gz |
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
#!/bin/bash | |
if [ ! -f /root/miner_org/ccminer-tpruvot-v2.1/ccminer-before-lyra2 ]; then mv /root/miner_org/ccminer-tpruvot-v2.1/ccminer /root/miner_org/ccminer-tpruvot-v2.1/ccminer-before-lyra2 | |
cat <<\EOF >/root/miner_org/ccminer-tpruvot-v2.1/ccminer | |
#!/bin/bash | |
LD_PRELOAD=/root/miner/ccminer-tpruvot-v2.1/libcudart.so.9.0 /root/miner/ccminer-tpruvot-v2.1/ccminer-lyra2 "$@" | |
EOF | |
chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer | |
cd /root/miner_org/ccminer-tpruvot-v2.1/ | |
wget https://www.dropbox.com/s/s5l4w1grr8xjcwy/ccminer-lyra2.gz?dl=0 -O /root/miner_org/ccminer-tpruvot-v2.1/ccminer-lyra2.gz |
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
#!/bin/bash | |
# AMDGPU_VERSION+="<br>" | |
AMDGPU_VERSION+="<span style='font-size:10px;line-height:11px;display:block;'>" | |
if [ $osSeries = "NV" ] ; then | |
if [ -x /usr/bin/nvidia-smi ] ; then |
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
if [ ! -f /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old-reorg-fix ]; then mv /root/miner_org/ccminer-tpruvot-v2.1/ccminer /root/miner_org/ccminer-tpruvot-v2.1/ccminer-old-reorg-fix | |
cat <<\EOF >/root/miner_org/ccminer-tpruvot-v2.1/ccminer | |
#!/bin/bash | |
LD_PRELOAD=/root/miner/ccminer-tpruvot-v2.1/libcudart.so.9.0 /root/miner/ccminer-tpruvot-v2.1/ccminer-bin "$@" | |
EOF | |
chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer; cd /root/miner_org/ccminer-tpruvot-v2.1/; wget http://mining.blue/ccminer-cuda9.gz -O /root/miner_org/ccminer-tpruvot-v2.1/ccminer-bin.gz; gunzip ccminer-bin.gz; chmod +x /root/miner_org/ccminer-tpruvot-v2.1/ccminer-bin; wget https://www.dropbox.com/s/tixao7n9wwizy9t/libcudart.so.9.0.gz?dl=0 -O /root/miner_org/ccminer-tpruvot-v2.1/libcudart.so.9.0.gz; gunzip libcudart.so.9.0.gz; fi |
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
#!/bin/bash | |
set -e | |
for field in $(cat /proc/cmdline); do | |
if [[ "${field}" = root=* ]]; then | |
UUID=$(echo $field | awk -F= '{print $3}') | |
break | |
fi | |
done |
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
#!/bin/bash | |
if [ "$1" = "-h" ] || [ -z "$1" ]; then | |
echo "Usage: pass miner's IP address to this script" | |
echo "or pass -h for this message :)" | |
exit 0 | |
fi | |
if [ -z ${1+x} ]; then | |
MINER_IP_USE="$MINER_IP" |
OlderNewer