wok-current annotate 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
rev   line source
pascal@370 1 rmdir usr
pascal@389 2 packedfs=".usr.cromfs"
pascal@389 3 if [ -f $packedfs ]; then
pascal@389 4 bin/unmkcromfs $packedfs usr
pascal@389 5 rm -f $packedfs
pascal@389 6 fi
pascal@1285 7 packedfs=".usr.sqfs"
pascal@389 8 if [ -f $packedfs ]; then
pascal@389 9 sbin/unsquashfs -d usr $packedfs
pascal@389 10 rm -f $packedfs
pascal@389 11 fi
pascal@370 12 ( cd usr/.moved ; find * -print ) | \
pascal@370 13 while read file; do
pascal@370 14 [ -L "$file" ] || continue
pascal@370 15 rm -f "$file"
pascal@370 16 mv "usr/.moved/$file" "$file"
pascal@370 17 done
pascal@370 18 rm -rf usr/.moved
pascal@954 19 for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do
pascal@954 20 [ -e $ii ] && mv $ii* usr/lib/
pascal@953 21 done
pascal@1620 22 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink; do
pascal@1620 23 [ -e usr/$ii ] && rm -f $ii
pascal@1620 24 done