1 2 3 4 5 6 7 8 9 10
#! /bin/sh HEXFILE=$1 if [ -z "$HEXFILE" ]; then echo "usage: $0 [hexfile]" exit 1 fi avrdude -c usbtiny -p attiny828 -U flash:w:$HEXFILE