mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
pm3: test access to /dev/ttyXXX files as prerequisite for linux
This commit is contained in:
parent
2ed5f1f614
commit
11f02967bc
1 changed files with 4 additions and 0 deletions
4
pm3
4
pm3
|
@ -30,6 +30,10 @@ SHOWLIST=false
|
|||
function get_pm3_list_Linux {
|
||||
N=$1
|
||||
PM3LIST=()
|
||||
if [ ! -c "/dev/tty0" ]; then
|
||||
echo >&2 "[!!] Script cannot access /dev/ttyXXX files, insufficient privileges"
|
||||
exit 1
|
||||
fi
|
||||
for DEV in $(find /dev/ttyACM* 2>/dev/null); do
|
||||
if which udevadm >/dev/null; then
|
||||
if udevadm info -q property -n "$DEV" | grep -q "ID_VENDOR=proxmark.org"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue