wok-4.x diff slitaz-loram/stuff/loram.extract @ rev 389
Slitaz-loram: support both cromfs and squashfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 09 12:58:23 2008 +0000 (2008-03-09) |
parents | fc9f573e8ac8 |
children | c4e6b92f665f |
line diff
1.1 --- a/slitaz-loram/stuff/loram.extract Sat Mar 08 11:30:12 2008 +0000 1.2 +++ b/slitaz-loram/stuff/loram.extract Sun Mar 09 12:58:23 2008 +0000 1.3 @@ -1,7 +1,14 @@ 1.4 -cromfs=".usr.cromfs" 1.5 rmdir usr 1.6 -bin/unmkcromfs $cromfs usr 1.7 -rm -f $cromfs 1.8 +packedfs=".usr.cromfs" 1.9 +if [ -f $packedfs ]; then 1.10 + bin/unmkcromfs $packedfs usr 1.11 + rm -f $packedfs 1.12 +fi 1.13 +packedfs=".usr.shfs" 1.14 +if [ -f $packedfs ]; then 1.15 + sbin/unsquashfs -d usr $packedfs 1.16 + rm -f $packedfs 1.17 +fi 1.18 ( cd usr/.moved ; find * -print ) | \ 1.19 while read file; do 1.20 [ -L "$file" ] || continue