mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-04 15:20:27 +08:00
e429f2c245
more safer to update bootrom & fullimage at the same time. No need to look out for new enumeration of comport..
14 lines
391 B
Bash
Executable file
14 lines
391 B
Bash
Executable file
#!/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 & system image
|
|
client/flasher $(wait4proxmark) -b bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
|