]> mj.ucw.cz Git - pciutils.git/commitdiff
update-pciids: Add support for xz compression
authorMartin Mares <mj@ucw.cz>
Sat, 22 Jul 2023 21:36:11 +0000 (23:36 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 22 Jul 2023 21:36:11 +0000 (23:36 +0200)
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"