Skip to content

Instantly share code, notes, and snippets.

@kusayuzayushko
Last active September 9, 2017 15:47
Show Gist options
  • Save kusayuzayushko/de337b5906d42cc79c34c6a9b17ceb7b to your computer and use it in GitHub Desktop.
Save kusayuzayushko/de337b5906d42cc79c34c6a9b17ceb7b to your computer and use it in GitHub Desktop.
bios-flash.sh
#!/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