File: sync-usbids.sh

package info (click to toggle)
libmtp 1.1.23-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,432 kB
  • sloc: ansic: 32,416; sh: 292; makefile: 207; python: 26; perl: 13
file content (13 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (3)
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