Last active
May 9, 2018 03:26
-
-
Save vanities/8dfa9041121e77801762c626cc9e4fa1 to your computer and use it in GitHub Desktop.
watch coins
This file contains hidden or 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 | |
new_config=0 | |
old_config=0 | |
remote_file="/home/ethos/remote.conf" | |
remote_url=$(cat $remote_file) | |
while true; do | |
new_config=$(wget -qO- $remote_url) | |
if [ "$new_config" != "$old_config" ] && [ "$old_config" != 0 ]; | |
then | |
#echo "changes made... changing coins" | |
/opt/ethos/bin/putconf | |
/opt/ethos/bin/minestop | |
/opt/ethos/bin/minestart | |
fi | |
old_config="$new_config" | |
sleep 10 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment