From 5dc2c7c3929c42ae0749c85e8d806938a6ac8c9b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 17 Nov 2019 11:47:08 +0100 Subject: [PATCH] pm3 serial detection on Linux more robust. Fixes #475 Official firmwares < 2018.02 had a different USB Model string (PM3<>proxmark3). Better to detect based on the vendor string (proxmark.org) which is more stable, to ease reflashing devices with old firmwares to the RDV4 firmware. Thanks @fishilico for having pointed it out. --- pm3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm3 b/pm3 index c3bed278e..a03b3351e 100755 --- a/pm3 +++ b/pm3 @@ -21,7 +21,7 @@ PM3LIST=() function get_pm3_list_Linux { PM3LIST=() for DEV in $(find /dev/ttyACM* 2>/dev/null); do - if udevadm info -q property -n "$DEV" |grep -q "ID_MODEL=proxmark3"; then + if udevadm info -q property -n "$DEV" |grep -q "ID_VENDOR=proxmark.org"; then PM3LIST+=("$DEV") fi done