diff options
author | Martin Mares <mj@ucw.cz> | 2023-07-22 23:36:11 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2023-07-22 23:36:11 +0200 |
commit | 327b6e8a1660e1c937b7987fa31f972af393521b (patch) | |
tree | b3e57ea84b20a93eeae48a72032df285f662b963 | |
parent | 9d9aa7055bea757fbe88b8667b07ea2102849e82 (diff) | |
download | pciutils-327b6e8a1660e1c937b7987fa31f972af393521b.tar.gz |
update-pciids: Add support for xz compression
-rwxr-xr-x | update-pciids.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/update-pciids.sh b/update-pciids.sh index 929f6af..3263339 100755 --- a/update-pciids.sh +++ b/update-pciids.sh @@ -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" |