wok-current diff slitaz-loram-http/stuff/loram.extract @ rev 1290
Add slitaz-loram-http
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 21 11:00:26 2008 +0000 (2008-08-21) |
parents | |
children | 52ca9fcdca28 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/slitaz-loram-http/stuff/loram.extract Thu Aug 21 11:00:26 2008 +0000 1.3 @@ -0,0 +1,46 @@ 1.4 +# remove link to cdrom 1.5 +[ -d cdrom ] && rmdir cdrom 1.6 +rm -f bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free 1.7 +if [ -L usr ]; then 1.8 + rm usr 1.9 + cp -a $1/usr . 1.10 +fi 1.11 +packedfs="$1/usr.cromfs" 1.12 +if [ -f $packedfs ]; then 1.13 + rmdir usr 1.14 + rm -f bin/unmkcromfs 1.15 + cp -a $1/unmkcromfs bin/unmkcromfs 1.16 + bin/unmkcromfs $packedfs usr 1.17 + [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs 1.18 + rm -f bin/cromfs-driver 1.19 + cp -a $1/cromfs-driver bin/cromfs-driver 1.20 +fi 1.21 +packedfs="$1/usr.sqfs" 1.22 +if [ -f $packedfs ]; then 1.23 + rmdir usr 1.24 + sbin/unsquashfs -d usr $packedfs 1.25 + [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs 1.26 +fi 1.27 +if [ -d usr/.moved ]; then 1.28 + ( cd usr/.moved ; find * -print ) | \ 1.29 + while read file; do 1.30 + [ -L "$file" ] || continue 1.31 + rm -f "$file" 1.32 + mv "usr/.moved/$file" "$file" 1.33 + done 1.34 + rm -rf usr/.moved 1.35 +fi 1.36 +for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do 1.37 + [ -e $ii ] && mv $ii* usr/lib/ 1.38 +done 1.39 +if [ -L root ]; then 1.40 + rm -f etc/keymap.conf etc/locale.conf etc/resolv.conf etc/TZ etc/motd 1.41 + [ -d var/log.ORG ] && mv -f var/log.ORG var/log 1.42 + [ -d var/run.ORG ] && mv -f var/run.ORG var/run 1.43 + [ -d var/lock.ORG ] && mv -f var/lock.ORG var/lock 1.44 + [ -d root.ORG ] && mv -f root.ORG root 1.45 + rm -f media/cdrom 1.46 + rmdir mnt/target 1.47 + sed -i 's/CLEAN_UP_SYSTEM="no"/CLEAN_UP_SYSTEM="yes"/' etc/rcS.conf 1.48 + sed -i 's/RUN_DAEMONS="/RUN_DAEMONS="slim /' etc/rcS.conf 1.49 +fi