wok-6.x view slitaz-loram-http/stuff/loram.rootfs @ rev 1794
Apache: update ssl config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 30 21:21:48 2008 +0000 (2008-11-30) |
parents | 755c0e3c3a53 |
children | 27c64029013c |
line source
1 echo "$(du -hs /usr | cut -f1) were used by /usr"
2 lib/ld-*.so --list ./sbin/insmod | grep /usr/lib | cut -d\ -f3 | \
3 while read ii; do
4 mv .${ii%%.so.*}.so* ./lib
5 done
6 for ii in /sbin /lib /bin; do
7 mkdir -p ./usr/.moved$ii
8 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
9 libcap; do
10 for k in $(grep -s ^$ii /var/lib/tazpkg/installed/$j/files.list) ; do
11 [ -f .$k ] || continue
12 mv .$k ./usr/.moved$k
13 ln -s /usr/.moved$k .$k
14 done
15 done
16 done
17 k="$(ls /lib/libp*.so /lib/librt*)"
18 [ -x /bin/funionfs ] && k=""
19 for ii in /var/lib/tazpkg/installed /lib/modules/*/kernel/drivers/net \
20 /lib/modules/*/kernel/sound /sbin/depmod /sbin/modinfo /bin/lsmod \
21 /lib/libnss_[^d]* $k; do
22 [ -L .$ii ] && continue
23 j=$(dirname /usr/.moved$ii)
24 mkdir -p .$j
25 mv .$ii .$j
26 ln -s /usr/.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; do
37 [ -e $ii ] || ln -s busybox $ii
38 done
39 mkdir cdrom .usr.rw
40 COMPRESSION="gzip"