Last active
January 29, 2019 12:13
-
-
Save Clearwood/60294c02702b6995e719ce8a1d4df218 to your computer and use it in GitHub Desktop.
configures GPU mining project
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
printf "\nUsername: " && read username && sed -i 's|.*stratum_server_login.*|stratum_server_login = "'$username'"|' grin-miner.toml | |
sed -i 's/log_to_stdout = true/log_to_stdout = false/' grin-miner.toml | |
sed -i 's/run_tui = true/run_tui = false/' grin-miner.toml | |
#printf "\nPassword: " && read password && sed -i 's|.*stratum_server_password.*|stratum_server_password = "'$password'"|' grin-miner.toml | |
printf "\nNumber of GPUs: " && read number | |
for (( c=0; c<$number; c++ )) | |
do | |
echo '[[mining.miner_plugin_config]] | |
plugin_name = "cuckaroo_cuda_29" | |
[mining.miner_plugin_config.parameters] | |
device = '"$c"'' >>grin-miner.toml | |
done | |
perl -0777 -i -pe 's/.{2}mining.miner_plugin_config.*\n.*\n.*\n.*\n/ /i' grin-miner.toml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment