wok view slitaz-loram-http/stuff/loram.rootfs @ 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 echo "$(du -hs /usr | cut -f1) were used by /usr"
2 for j in insmod unmkcromfs unsquashfs ; do
3 lib/ld-*.so --list *bin/$j 2> /dev/null | grep /usr/lib | cut -d\ -f3 | \
4 while read ii; do
5 mv .${ii%%.so.*}.so* ./lib
6 done
7 done
8 for ii in /sbin /lib /bin; do
9 mkdir -p ./usr/.moved$ii
10 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
11 libcap; do
12 for k in $(grep -s ^$ii /var/lib/tazpkg/installed/$j/files.list) ; do
13 [ -f .$k ] || continue
14 mv .$k ./usr/.moved$k
15 ln -s /.moved$k .$k
16 done
17 done
18 done
19 for ii in /var/lib/tazpkg/installed /lib/modules/*/kernel/drivers/net \
20 /lib/modules/*/kernel/sound /sbin/depmod /sbin/modinfo /sbin/lsmod \
21 /lib/libnss_c* ; do
22 [ -L .$ii ] && continue
23 j=$(dirname /usr/.moved$ii)
24 mkdir -p .$j
25 mv .$ii .$j
26 ln -s /.moved$ii .$ii
27 done
28 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
29 mv usr/bin/httpfs bin
30 cp usr/lib/libfuse.so.2.* lib/libfuse.so.2
31 mv usr/share/udhcpc/default.script .
32 rm -rf usr
33 mkdir -p usr/share/udhcpc
34 mv default.script usr/share/udhcpc
35 ln -s /cdrom/boot boot
36 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free \
37 bin/killall5 bin/seq bin/find bin/xargs bin/patch; do
38 [ -e $ii ] || ln -s busybox $ii
39 done
40 [ -e bin/vcsa2txt ] || ln -s busybox bin/conspy
41 mkdir cdrom .usr.rw
42 COMPRESSION="gzip"