wok-stable view slitaz-loram/stuff/loram.extract @ rev 1620
slitaz-loram*: do not assume files are in /usr/bin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 21 08:48:46 2008 +0000 (2008-10-21) |
parents | 1f3b7c0e6144 |
children | 27c64029013c |
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.sqfs"
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
19 for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do
20 [ -e $ii ] && mv $ii* usr/lib/
21 done
22 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink; do
23 [ -e usr/$ii ] && rm -f $ii
24 done