mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 03:48:33 +08:00
update.sh flash boot only if option -b
This commit is contained in:
parent
897632a717
commit
a60b2f24a8
1 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
FULLIMAGE="armsrc/obj/fullimage.elf"
|
||||
if [ "$1" == "-b" ]; then
|
||||
FLASHBOOT="-b bootrom/obj/bootrom.elf"
|
||||
fi
|
||||
|
||||
function wait4proxmark_Linux {
|
||||
echo >&2 "Waiting for Proxmark to appear..."
|
||||
while [ ! -c /dev/ttyACM? -a ! -L /dev/pm3-? ]; do
|
||||
|
@ -26,7 +31,7 @@ function wait4proxmark_macOS {
|
|||
# Detect OS and flash bootroom & system image
|
||||
|
||||
if [[ $(uname | awk '{print toupper($0)}') == "LINUX" ]]; then
|
||||
client/flasher $(wait4proxmark_Linux) -b bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
|
||||
client/flasher $(wait4proxmark_Linux) $FLASHBOOT $FULLIMAGE
|
||||
elif [[ $(uname | awk '{print toupper($0)}') == "DARWIN" ]]; then
|
||||
client/flasher $(wait4proxmark_macOS) -b bootrom/obj/bootrom.elf armsrc/obj/fullimage.elf
|
||||
client/flasher $(wait4proxmark_macOS) $FLASHBOOT $FULLIMAGE
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue