aboutsummaryrefslogtreecommitdiffstats
path: root/find-serial-port
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-10-08 10:21:33 -0400
committerBrian Cully <bjc@kublai.com>2019-10-08 10:21:33 -0400
commit1102441cb0c550e34a07f1a7ddd9c99d29f8e83a (patch)
treebc15b01e32eb59c0549ec88c018454aa78d98c9d /find-serial-port
parentf73069bd4ba5c7d006c2eafe05e5b098beec3be0 (diff)
downloadatsamd-usb-host-1102441cb0c550e34a07f1a7ddd9c99d29f8e83a.tar.gz
atsamd-usb-host-1102441cb0c550e34a07f1a7ddd9c99d29f8e83a.zip
Remove find-serial-port.
Diffstat (limited to 'find-serial-port')
-rwxr-xr-xfind-serial-port16
1 files changed, 0 insertions, 16 deletions
diff --git a/find-serial-port b/find-serial-port
deleted file mode 100755
index 62e2c0c..0000000
--- a/find-serial-port
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-if [ $# -ne 2 ]; then
- echo "Usage: $0 vid pid" >&2
- exit 1
-fi
-
-prefix=/dev/serial/by-id
-
-for dev in `ls $prefix`; do
- if [ `udevadm info -q property --name $prefix/$dev | egrep -i "ID_VENDOR_ID=($1)|ID_MODEL_ID=($2)" | wc -l` -eq 2 ]; then
- echo `readlink -f $prefix/$dev`
- exit 0
- fi
-done
-exit 2