Skip to content

Commit

Permalink
Modified identifyusb
Browse files Browse the repository at this point in the history
  • Loading branch information
pocopico committed Jan 10, 2022
1 parent c67cd18 commit bedd017
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,6 @@ else
usbdevice="`grep iManufacturer /tmp/lsusb.out | awk '{print $3}'` `grep iProduct /tmp/lsusb.out | awk '{print $3}' ` SerialNumber: `grep iSerial /tmp/lsusb.out | awk '{print $3}'`"
fi

usbdevice="$usbdev `grep -B 10 -A 10 $usbdev /tmp/lsusb.out | grep iProduct | awk '{print $3}'` Serial Number : `grep -B 10 -A 10 $usbdev /tmp/lsusb.out | grep iSerial | awk '{print $3}'`"


if [ -n "$usbdevice" ] && [ -n "$vendorid" ] && [ -n "$productid" ] ; then
echo "Found $usbdevice"
echo "Vendor ID : $vendorid Product ID : $productid"
Expand Down

0 comments on commit bedd017

Please sign in to comment.