wok-6.x view slitaz-loram-cdrom/stuff/loram.extract @ rev 569

Up: libxml2 (2.6.32)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 14 15:06:52 2008 +0200 (2008-04-14)
parents fc9f573e8ac8
children be656ac55ce8
line source
1 # remove link to cdrom
2 [ -d cdrom ] && rmdir cdrom
3 rm -f bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink
4 if [ -L usr ]; then
5 rm usr
6 cp -a $1/usr .
7 fi
8 packedfs="$1/usr.cromfs"
9 if [ -f $packedfs ]; then
10 rmdir usr
11 rm -f bin/unmkcromfs
12 cp -a $1/unmkcromfs bin/unmkcromfs
13 bin/unmkcromfs $packedfs usr
14 [ "${packedfs%%/*]" = ".." ] && rm -f $packedfs
15 rm -f bin/cromfs-driver
16 cp -a $1/cromfs-driver bin/cromfs-driver
17 fi
18 packedfs="$1/usr.sqfs"
19 if [ -f $packedfs ]; then
20 rmdir usr
21 sbin/unsquashfs -d usr $packedfs
22 [ "${packedfs%%/*]" = ".." ] && rm -f $packedfs
23 fi
24 if [ -d usr/.moved ]; then
25 ( cd usr/.moved ; find * -print ) | \
26 while read file; do
27 [ -L "$file" ] || continue
28 rm -f "$file"
29 mv "usr/.moved/$file" "$file"
30 done
31 rm -rf usr/.moved
32 fi