wok-stable view slitaz-loram-cdrom/stuff/loram.extract @ rev 2075
Add: xfdesktop, xfprint*, xfwm4, xfwm4-themes
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 23 23:10:35 2009 +0100 (2009-01-23) |
parents | 0ae8330553fc |
children | 27c64029013c |
line source
1 # remove link to cdrom
2 [ -d cdrom ] && rmdir cdrom
3 if [ -L usr ]; then
4 rm usr
5 cp -a $1/usr .
6 fi
7 packedfs="$1/usr.cromfs"
8 if [ -f $packedfs ]; then
9 rmdir usr
10 rm -f bin/unmkcromfs
11 cp -a $1/unmkcromfs bin/unmkcromfs
12 bin/unmkcromfs $packedfs usr
13 [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs
14 rm -f bin/cromfs-driver
15 cp -a $1/cromfs-driver bin/cromfs-driver
16 fi
17 packedfs="$1/usr.sqfs"
18 if [ -f $packedfs ]; then
19 rmdir usr
20 sbin/unsquashfs -d usr $packedfs
21 [ "${packedfs%%/*}" = ".." ] && rm -f $packedfs
22 fi
23 if [ -d usr/.moved ]; then
24 ( cd usr/.moved ; find * -print ) | \
25 while read file; do
26 [ -L "$file" ] || continue
27 rm -f "$file"
28 mv "usr/.moved/$file" "$file"
29 done
30 rm -rf usr/.moved
31 fi
32 for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do
33 [ -e $ii ] && mv $ii* usr/lib/
34 done
35 if [ -L root ]; then
36 rm -f etc/keymap.conf etc/locale.conf etc/resolv.conf etc/TZ etc/motd
37 [ -d var/log.ORG ] && mv -f var/log.ORG var/log
38 [ -d var/run.ORG ] && mv -f var/run.ORG var/run
39 [ -d var/lock.ORG ] && mv -f var/lock.ORG var/lock
40 [ -d root.ORG ] && mv -f root.ORG root
41 rm -f media/cdrom
42 rmdir mnt/target
43 sed -i 's/CLEAN_UP_SYSTEM="no"/CLEAN_UP_SYSTEM="yes"/' etc/rcS.conf
44 sed -i 's/RUN_DAEMONS="/RUN_DAEMONS="slim /' etc/rcS.conf
45 fi
46 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free; do
47 [ -e usr/$ii ] && rm -f $ii
48 done