]> mj.ucw.cz Git - pciutils.git/blobdiff - update-pciids.sh
update-pciids: Add support for xz compression
[pciutils.git] / update-pciids.sh
index 929f6af716ec8dbe03870aaa9bb3e285544fd18e..32633394a28bebdde61aa7338638db6a444b42e9 100755 (executable)
@@ -20,6 +20,9 @@ if [ "$PCI_COMPRESSED_IDS" = 1 ] ; then
        DECOMP="cat"
        SRC="$SRC.gz"
        GREP=zgrep
+elif command -v xz >/dev/null 2>&1 ; then
+       DECOMP="xz -d"
+       SRC="$SRC.xz"
 elif command -v bzip2 >/dev/null 2>&1 ; then
        DECOMP="bzip2 -d"
        SRC="$SRC.bz2"