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