mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
searchFile for firmwares
This commit is contained in:
parent
f7624a7767
commit
6385ee960f
4 changed files with 42 additions and 14 deletions
8
pm3
8
pm3
|
@ -3,21 +3,17 @@
|
|||
# Usage: run option -h to get help
|
||||
|
||||
PM3PATH=$(dirname "$0")
|
||||
FULLIMAGE="fullimage.elf"
|
||||
BOOTIMAGE="bootrom.elf"
|
||||
# try pm3 dirs in current repo workdir
|
||||
if [ -d "$PM3PATH/client/" ]; then
|
||||
CLIENT="$PM3PATH/client/proxmark3"
|
||||
FULLIMAGE="$PM3PATH/armsrc/obj/fullimage.elf"
|
||||
BOOTIMAGE="$PM3PATH/bootrom/obj/bootrom.elf"
|
||||
# try install dir
|
||||
elif [ -x "$PM3PATH/proxmark3" ]; then
|
||||
CLIENT="$PM3PATH/proxmark3"
|
||||
FULLIMAGE="$PM3PATH/../share/proxmark3/firmware/fullimage.elf"
|
||||
BOOTIMAGE="$PM3PATH/../share/proxmark3/firmware/bootrom.elf"
|
||||
else
|
||||
# hope it's installed somehow, still not sure where fw images are...
|
||||
CLIENT="proxmark3"
|
||||
FULLIMAGE="$PM3PATH/../share/proxmark3/firmware/fullimage.elf"
|
||||
BOOTIMAGE="$PM3PATH/../share/proxmark3/firmware/bootrom.elf"
|
||||
fi
|
||||
|
||||
function wait4proxmark_Linux {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue