wok annotate slitaz-loram/stuff/loram.extract @ rev 765

Slitaz-loram*: restore files need by boot script
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 10 22:28:03 2008 +0000 (2008-05-10)
parents c4e6b92f665f
children 5f88af4f7f75
rev   line source
pascal@370 1 rmdir usr
pascal@765 2 rm -f bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink
pascal@389 3 packedfs=".usr.cromfs"
pascal@389 4 if [ -f $packedfs ]; then
pascal@389 5 bin/unmkcromfs $packedfs usr
pascal@389 6 rm -f $packedfs
pascal@389 7 fi
pascal@389 8 packedfs=".usr.shfs"
pascal@389 9 if [ -f $packedfs ]; then
pascal@389 10 sbin/unsquashfs -d usr $packedfs
pascal@389 11 rm -f $packedfs
pascal@389 12 fi
pascal@370 13 ( cd usr/.moved ; find * -print ) | \
pascal@370 14 while read file; do
pascal@370 15 [ -L "$file" ] || continue
pascal@370 16 rm -f "$file"
pascal@370 17 mv "usr/.moved/$file" "$file"
pascal@370 18 done
pascal@370 19 rm -rf usr/.moved