#! /bin/sh HEXFILE=$1 if [ -z "$HEXFILE" ]; then echo "usage: $0 [hexfile]" exit 1 fi avrdude -c usbtiny -p attiny828 -U flash:w:$HEXFILE