download-fw.sh (490B)
1 #!/bin/bash 2 3 programname=$0 4 fwver=$1 5 6 function usage { 7 echo "usage: $programname 25_R2 # (if you have motherboard version 2.5 or newer)" 8 echo " $programname 20_R3 # (if you have motherboard version 2.0)" 9 echo "" 10 exit 1 11 } 12 13 if [ "$fwver" != "25_R2" ] && [ "$fwver" != "20_R3" ]; then 14 usage 15 fi 16 17 mkdir -p bin 18 wget -O bin/firmware.bin "https://source.mnt.re/reform/reform/-/jobs/artifacts/master/raw/reform2-lpc-fw/firmware-$fwver.bin?job=build" 19