wok rev 4414
xarchine: add tazpkg/lzma support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 21 19:02:33 2009 +0200 (2009-10-21) |
parents | 10d0e80d23ea |
children | 2f0a7b6ac637 |
files | xarchive/stuff/slitaz-wrap.sh |
line diff
1.1 --- a/xarchive/stuff/slitaz-wrap.sh Wed Oct 21 12:24:33 2009 +0000 1.2 +++ b/xarchive/stuff/slitaz-wrap.sh Wed Oct 21 19:02:33 2009 +0200 1.3 @@ -76,8 +76,11 @@ 1.4 { 1.5 tmpcpio="$(mktemp -d -t tmpcpio.XXXXXX)" 1.6 cd $tmpcpio 1.7 - cpio -i fs.cpio.gz > /dev/null < "$1" 1.8 - zcat fs.cpio.gz 1.9 + cpio -i > /dev/null < "$1" 1.10 + case "$(ls fs.cpio* 2> /dev/null)" in 1.11 + fs.cpio.lzma) unlzma -c fs.cpio.lzma;; 1.12 + fs.cpio.gz) zcat fs.cpio.gz;; 1.13 + esac 1.14 cd - 1.15 rm -rf $tmpcpio 1.16 }