4 SRC="http://pciids.sourceforge.net/pci.ids"
7 if which bzip2 >/dev/null ; then
10 elif which gzip >/dev/null ; then
17 if which wget >/dev/null ; then
18 DL="wget -O $DEST.new $SRC"
19 elif which lynx >/dev/null ; then
20 DL="eval lynx -source $SRC >$DEST.new"
22 echo >&2 "update-pciids: cannot find wget nor lynx"
27 echo >&2 "update-pciids: download failed"
32 if ! $DECOMP <$DEST.new >$DEST.neww ; then
33 echo >&2 "update-pciids: decompression failed, probably truncated file"
37 if ! grep >/dev/null "^C " $DEST.neww ; then
38 echo >&2 "update-pciids: missing class info, probably truncated file"
42 if [ -f $DEST ] ; then