X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=update-pciids.sh;h=2e241208d342aa02c2cd59e7c457577747d3c790;hb=92995a8d6fd3d19a8b01bfb2616c0ac494d199b9;hp=52a3d7e1099850f332f518f8104d8847faa96133;hpb=d26b53789cd7484808f131b3f729b1c0b20c0fd1;p=pciutils.git diff --git a/update-pciids.sh b/update-pciids.sh index 52a3d7e..2e24120 100755 --- a/update-pciids.sh +++ b/update-pciids.sh @@ -3,7 +3,7 @@ [ "$1" = "-q" ] && quiet=true || quiet=false set -e -SRC="http://pciids.sourceforge.net/v2.2/pci.ids" +SRC="https://pci-ids.ucw.cz/v2.2/pci.ids" DEST=pci.ids PCI_COMPRESSED_IDS= GREP=grep @@ -15,7 +15,7 @@ if ! touch ${DEST} >/dev/null 2>&1 ; then exit 1 fi -if [ -n "$PCI_COMPRESSED_IDS" ] ; then +if [ "$PCI_COMPRESSED_IDS" = 1 ] ; then DECOMP="cat" SRC="$SRC.gz" GREP=zgrep @@ -33,7 +33,7 @@ if which curl >/dev/null 2>&1 ; then 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"