wok-current view 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 source
1 rmdir usr
2 packedfs=".usr.cromfs"
3 if [ -f $packedfs ]; then
4 bin/unmkcromfs $packedfs usr
5 rm -f $packedfs
6 fi
7 packedfs=".usr.shfs"
8 if [ -f $packedfs ]; then
9 sbin/unsquashfs -d usr $packedfs
10 rm -f $packedfs
11 fi
12 ( cd usr/.moved ; find * -print ) | \
13 while read file; do
14 [ -L "$file" ] || continue
15 rm -f "$file"
16 mv "usr/.moved/$file" "$file"
17 done
18 rm -rf usr/.moved