diff --git a/proxmark3.sh b/proxmark3.sh new file mode 100755 index 000000000..44c5c7e2c --- /dev/null +++ b/proxmark3.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +function wait4proxmark { + echo >&2 "Waiting for Proxmark to appear..." + while [ ! -c /dev/ttyACM? -a ! -L /dev/pm3-? ]; do + sleep .1 + done + local PM3=`ls -1 /dev/pm3-? /dev/ttyACM? 2>/dev/null | head -1` + echo >&2 -e "Found proxmark on ${PM3}\n" + echo $PM3 +} + +# start proxmark with first detected interface +client/proxmark3 $(wait4proxmark) diff --git a/update.sh b/update.sh new file mode 100755 index 000000000..b62d39417 --- /dev/null +++ b/update.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +function wait4proxmark { + echo >&2 "Waiting for Proxmark to appear..." + while [ ! -c /dev/ttyACM? -a ! -L /dev/pm3-? ]; do + sleep .1 + done + local PM3=`ls -1 /dev/pm3-? /dev/ttyACM? 2>/dev/null | head -1` + echo >&2 -e "Found proxmark on ${PM3}\n" + echo $PM3 +} + +# flash bootroom +client/flasher $(wait4proxmark) -b bootrom/obj/bootrom.elf + +# flash system image +client/flasher $(wait4proxmark) armsrc/obj/fullimage.elf