Skip to content

Commit

Permalink
pm3: test access to /dev/ttyXXX files as prerequisite for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed May 17, 2020
1 parent 2ed5f1f commit 11f0296
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pm3
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11f0296

Please sign in to comment.