Skip to content

Instantly share code, notes, and snippets.

@kusayuzayushko
Created September 9, 2017 15:20
Show Gist options
  • Save kusayuzayushko/ce6177f028dcb02dc4364652731bb041 to your computer and use it in GitHub Desktop.
Save kusayuzayushko/ce6177f028dcb02dc4364652731bb041 to your computer and use it in GitHub Desktop.
bios-update.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
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