diff options
author | Brian Cully <bjc@kublai.com> | 2019-08-11 19:01:34 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-08-11 19:01:34 -0400 |
commit | 7fdc6a2c1b5799221f5d89d5f935cfe7dad4ccd2 (patch) | |
tree | 3ac13da04997361ddb688d2f666298d075aa14e2 /find-serial-port | |
parent | cceebb087a7a8afc41e0523f6e98be2301ff3af1 (diff) | |
download | bleusb-7fdc6a2c1b5799221f5d89d5f935cfe7dad4ccd2.tar.gz bleusb-7fdc6a2c1b5799221f5d89d5f935cfe7dad4ccd2.zip |
Move usb controller stuff to usb directory.
Diffstat (limited to 'find-serial-port')
-rwxr-xr-x | find-serial-port | 16 |
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 |