Skip to content
Permalink
d5a023d68c
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 22 lines (18 sloc) 422 Bytes
#!/usr/bin/env bash
for d in /sys/bus/usb/devices/* ; do
if [ ! -r $d ]; then
continue
fi
if [ ! -r $d/idVendor ]; then
continue
fi
idVendor=$(<$d/idVendor)
idProduct=$(<$d/idProduct)
# manufacturer=$(<$d/manufacturer)
# echo "$d $idVendor:$idProduct $manufacturer"
if [ "$idVendor:$idProduct" = "0fd9:0066" ] ; then
echo $d
exit 0
fi
done
exit 1