#! /bin/sh killall JLinkGDBServerCLExe @JLinkGDBServerCLExe_PATH@ -silent -device @DEBUG_DEVICE@ -select usb -if SWD -speed auto -LocalhostOnly 1 -strict -vd -singlerun -timeout 3000 -powertarget 0 -nogui & sleep 2 pgrep -i JLinkGDBServer # exit with status of last command exit $?