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