]> git.pld-linux.org Git - projects/geninitrd.git/blobdiff - extract-ikconfig
Version 12531.
[projects/geninitrd.git] / extract-ikconfig
index 1512c0a755acea37da3d190c88ae47c04023f883..c814553af07fa0e51cea3b963aeac5ba5f9a271a 100755 (executable)
@@ -48,8 +48,8 @@ then
 fi
 
 # Prepare temp files:
-tmp1=/tmp/ikconfig$$.1
-tmp2=/tmp/ikconfig$$.2
+tmp1=$(mktemp)
+tmp2=$(mktemp)
 trap "rm -f $tmp1 $tmp2" 0
 
 # Initial attempt for uncompressed images or objects:
@@ -57,6 +57,7 @@ dump_config "$img"
 
 # That didn't work, so retry after decompression.
 try_decompress '\037\213\010' xy  gunzip
+try_decompress '\3757zXZ\000' xy  xzdec
 try_decompress 'BZh'          xy  bunzip2
 try_decompress '\135\0\0\0'   xxx unlzma
 try_decompress '\211\114\132' xy  'lzop -d'
This page took 0.024199 seconds and 4 git commands to generate.