scripts/patch-kernel: digest kernel.org hosted .xz patches
[~shefty/rdma-dev.git] / scripts / patch-kernel
index 20fb25c2338299f33a8954d6b046ce17f7b466fe..d000ea3a41fdb7f202a34e439cf954bd5353b74f 100755 (executable)
@@ -116,6 +116,10 @@ findFile () {
                ext=".bz2"
                name="bzip2"
                uncomp="bunzip2 -dc"
+  elif [ -r ${filebase}.xz ]; then
+                ext=".xz"
+                name="xz"
+                uncomp="xz -dc"
   elif [ -r ${filebase}.zip ]; then
                ext=".zip"
                name="zip"