Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kusayuzayushko/5a8226bd334661e686f3cb8053c87a8f to your computer and use it in GitHub Desktop.
Save kusayuzayushko/5a8226bd334661e686f3cb8053c87a8f to your computer and use it in GitHub Desktop.
ETHpill for SMOS
#!/bin/bash
CONFIG_FILE="/root/config.txt"
source $CONFIG_FILE
export DISPLAY=:0
export GPU_MAX_ALLOC_PRECENT=100
export GPU_USE_SYNC_OBJECTS=0
export GPU_SINGLE_ALLOC_PERCENT=100
killall xterm -9
killall screen -9
screen -wipe
sleep 1
if [ $osSeries == "NV" ]; then
gpu_info=`nvidia-smi -L`
IFS=$'\n' read -d '' -r -a gpu_list <<< "$gpu_info"
re='[[:space:]](1080)|(1080 Ti)|(P102-100)|(P104-100)[[:space:]]'
if [[ "${gpu_list[$line_n]}" =~ $re ]]; then
echo "found GPU"
screen -dm -S ohgod bash -c "sudo /root/utils/OhGodAnETHlargementPill" &
fi
fi
screen -dm -S miner bash -c "/root/utils/update_register.sh" &
screen -dm -S srr_pre bash -c "/root/utils/SRR/keepalive.sh" &
if [ $osSeries == "R" ]; then
# xterm -title "CPU/Memory info" -geometry 100x8+5+620 -e "while true; do screen -x htop; sleep 1; done" &
# xterm -title "GPU status" -geometry 120x40+815+40 -e "while true; do screen -x gpu_stats; sleep 1; done" &
xterm -title "Miner Console" -geometry 130x30+5+200 -e "while true; do screen -x miner; sleep 1; done" &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment