1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/airfy-beacon/dist/reset.sh

18 lines
257 B
Bash
Raw Normal View History

2014-10-26 15:59:38 +01:00
#!/bin/sh
if [ -L "$0" ]; then
FILE=$(readlink "$0")
else
FILE="$0"
fi
BIN_FOLDER=$(dirname "${FILE}")
echo "##"
echo "## Resetting $BOARD"
echo "##"
openocd -f "${BIN_FOLDER}/openocd.cfg" \
-c "init" \
-c "reset run" \
-c "shutdown"