Last active
September 9, 2017 15:47
-
-
Save kusayuzayushko/de337b5906d42cc79c34c6a9b17ceb7b to your computer and use it in GitHub Desktop.
bios-flash.sh
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 | |
num=`sudo /root/utils/atiflash -i | grep pass | wc -l` | |
echo "$num cards detected" | |
echo "Downloading ROM file" | |
wget https://www.dropbox.com/s/o0ej51cnk7oom8x/Pulse100.rom -P /home/miner | |
echo "killing miner programm" | |
sudo killall -9 screen && screen -wipe | |
for (( i = 0; i < $num; i++ )); do | |
echo "Flashing card: $i" | |
sudo /root/utils/atiflash -p $i /home/miner/Pulse100.rom | |
done | |
rm -f /home/miner/Pulse100.rom | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment