summaryrefslogtreecommitdiff
path: root/sync-usbids.sh
blob: 45e9314b74a494c22ba0aa12247b093ea2d60f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Script to compare the USB ID list from linux-usb
# with the internal list of libmtp.

WGET=`which wget`
if [ "x$WGET" != "x" ]; then
    wget -O usb.ids http://www.linux-usb.org/usb.ids
    examples/hotplug -i > usb.ids-libmtp
    echo "OK now compare usb.ids and usb.ids-libmtp..."
else
    echo "Could not sync to linux-usb USB ID list. No WGET."
fi