git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-92
+2006-03-13 Martin Mares <mj@ucw.cz>
+
+ * update-pciids.sh: Use curl if available. Patch by Matthew Wilcox.
+
2006-01-04 Martin Mares <mj@ucw.cz>
* lspci.c (show_express_link): Fixed decoding of link status register.
fetches the current version of the pci.ids file from the primary distribution
site and installs it.
-This utility requires either wget or lynx to be installed. If gzip or bzip2
+This utility requires curl, wget or lynx to be installed. If gzip or bzip2
are available, it automatically downloads the compressed version of the list.
.SH FILES
DECOMP="cat"
fi
-if which wget >/dev/null ; then
+if which curl >/dev/null ; then
+ DL="curl -o $DEST.new $SRC"
+elif which wget >/dev/null ; then
DL="wget -O $DEST.new $SRC"
elif which lynx >/dev/null ; then
DL="eval lynx -source $SRC >$DEST.new"
else
- echo >&2 "update-pciids: cannot find wget nor lynx"
+ echo >&2 "update-pciids: cannot find curl, wget or lynx"
exit 1
fi