wok-next annotate slitaz-loram-http/stuff/loram.extract @ rev 7535

Up: feh to 1.10.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Dec 06 23:03:20 2010 +0000 (2010-12-06)
parents 3cdfaefe3387
children
rev   line source
pascal@1290 1 # remove link to cdrom
pascal@4099 2 [ -d cdrom ] && rmdir cdrom 2> /dev/null
pascal@4099 3 rmdir .usr* 2> /dev/null
pascal@1290 4 if [ -L usr ]; then
pascal@1290 5 rm usr
pascal@1290 6 cp -a $1/usr .
pascal@1290 7 fi
pascal@1290 8 packedfs="$1/usr.cromfs"
pascal@1290 9 if [ -f $packedfs ]; then
pascal@1290 10 rmdir usr
pascal@1290 11 rm -f bin/unmkcromfs
pascal@1290 12 cp -a $1/unmkcromfs bin/unmkcromfs
pascal@4099 13 bin/unmkcromfs $packedfs usr > /dev/null
pascal@1290 14 [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs
pascal@1290 15 rm -f bin/cromfs-driver
pascal@1290 16 cp -a $1/cromfs-driver bin/cromfs-driver
pascal@1290 17 fi
pascal@1290 18 packedfs="$1/usr.sqfs"
pascal@1290 19 if [ -f $packedfs ]; then
pascal@1290 20 rmdir usr
pascal@4099 21 sbin/unsquashfs -d usr $packedfs > /dev/null
pascal@1290 22 [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs
pascal@1290 23 fi
pascal@5535 24 if [ -d .moved ]; then
pascal@5535 25 ( cd .moved ; find * -print ) | \
pascal@1290 26 while read file; do
pascal@1290 27 [ -L "$file" ] || continue
pascal@1290 28 rm -f "$file"
pascal@5535 29 mv ".moved/$file" "$file"
pascal@1290 30 done
pascal@5535 31 rm -rf usr/.moved 2> /dev/null
pascal@5535 32 rm -f .moved
pascal@1290 33 fi
pascal@1290 34 for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do
pascal@1290 35 [ -e $ii ] && mv $ii* usr/lib/
pascal@1290 36 done
pascal@1290 37 if [ -L root ]; then
pascal@1290 38 rm -f etc/keymap.conf etc/locale.conf etc/resolv.conf etc/TZ etc/motd
pascal@1290 39 [ -d var/log.ORG ] && mv -f var/log.ORG var/log
pascal@1290 40 [ -d var/run.ORG ] && mv -f var/run.ORG var/run
pascal@1290 41 [ -d var/lock.ORG ] && mv -f var/lock.ORG var/lock
pascal@1290 42 [ -d root.ORG ] && mv -f root.ORG root
pascal@1290 43 rm -f media/cdrom
pascal@1290 44 rmdir mnt/target
pascal@1290 45 sed -i 's/CLEAN_UP_SYSTEM="no"/CLEAN_UP_SYSTEM="yes"/' etc/rcS.conf
pascal@1290 46 sed -i 's/RUN_DAEMONS="/RUN_DAEMONS="slim /' etc/rcS.conf
pascal@1290 47 fi
pascal@2140 48 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free \
pascal@4454 49 bin/killall5 bin/seq bin/find bin/xargs bin/patch; do
pascal@1620 50 [ -e usr/$ii ] && rm -f $ii
pascal@1620 51 done
pascal@5715 52 [ -e usr/bin/vcsa2txt ] || rm -f bin/conspy