pm3 without udev: change detection routine

This commit is contained in:
Philippe Teuwen 2020-05-16 15:58:24 +02:00
parent bca9326684
commit bc767f167f

2
pm3
View file

@ -39,7 +39,7 @@ function get_pm3_list_Linux {
fi
fi
else
if grep -q "PRODUCT=9ac4/4b8f" "/sys/class/tty/${DEV#/dev/}/../../uevent" 2>/dev/null; then
if grep -q "proxmark.org" "/sys/class/tty/${DEV#/dev/}/../../../manufacturer" 2>/dev/null; then
PM3LIST+=("$DEV")
if [ ${#PM3LIST[*]} -ge $N ]; then
return