proxmark3/update.sh

18 lines
430 B
Bash
Raw Normal View History

#!/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