#!/bin/sh if (( $# != 1 )); then echo "Usage:" echo "$0 " exit 1 fi openocd -f openocd.cfg -c "program $1 verify reset exit"