[ "$1" = "-q" ] && quiet=true || quiet=false
set -e
-SRC="http://pciids.sourceforge.net/v2.2/pci.ids"
+SRC="http://pci-ids.ucw.cz/v2.2/pci.ids"
DEST=pci.ids
PCI_COMPRESSED_IDS=
GREP=grep
exit 1
fi
-if [ -n "$PCI_COMPRESSED_IDS" ] ; then
+if [ "$PCI_COMPRESSED_IDS" = 1 ] ; then
DECOMP="cat"
SRC="$SRC.gz"
GREP=zgrep
DL="curl -o $DEST.new $SRC"
${quiet} && DL="$DL -s -S"
elif which wget >/dev/null 2>&1 ; then
- DL="wget -O $DEST.new $SRC"
+ DL="wget --no-timestamping -O $DEST.new $SRC"
${quiet} && DL="$DL -q"
elif which lynx >/dev/null 2>&1 ; then
DL="eval lynx -source $SRC >$DEST.new"