#!/bin/sh lsusb | sed "s/.* \(\S\{4\}\):\(\S\{4\}\).*/\1 \2/g" | while read vendor product; do grep -h "^[^ ]\+ \+[^ ]\+ \+0x$vendor \+0x$product " /lib/modules/$(uname -r)/modules.usbmap.${1-*} 2>/dev/null | cut -d " " -f1 done | sort -u