wok-current annotate slitaz-loram-http/stuff/loram.rootfs @ rev 3495

Added pwsafe
author Liu Peng <rocky@slitaz.org>
date Thu Jun 18 23:28:28 2009 +0800 (2009-06-18)
parents 52ca9fcdca28
children d09310ff02e5
rev   line source
pascal@1290 1 echo "$(du -hs /usr | cut -f1) were used by /usr"
pascal@1290 2 lib/ld-*.so --list ./sbin/insmod | grep /usr/lib | cut -d\ -f3 | \
pascal@1290 3 while read ii; do
pascal@1290 4 mv .${ii%%.so.*}.so* ./lib
pascal@1290 5 done
pascal@1290 6 for ii in /sbin /lib /bin; do
pascal@1290 7 mkdir -p ./usr/.moved$ii
pascal@1290 8 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
pascal@1290 9 libcap; do
pascal@1290 10 for k in $(grep -s ^$ii /var/lib/tazpkg/installed/$j/files.list) ; do
pascal@1290 11 [ -f .$k ] || continue
pascal@1290 12 mv .$k ./usr/.moved$k
pascal@1290 13 ln -s /usr/.moved$k .$k
pascal@1290 14 done
pascal@1290 15 done
pascal@1290 16 done
pascal@1290 17 k="$(ls /lib/libp*.so /lib/librt*)"
pascal@1290 18 [ -x /bin/funionfs ] && k=""
pascal@1290 19 for ii in /var/lib/tazpkg/installed /lib/modules/*/kernel/drivers/net \
pascal@2140 20 /lib/modules/*/kernel/sound /sbin/depmod /sbin/modinfo /sbin/lsmod \
pascal@1290 21 /lib/libnss_[^d]* $k; do
pascal@1290 22 [ -L .$ii ] && continue
pascal@1290 23 j=$(dirname /usr/.moved$ii)
pascal@1290 24 mkdir -p .$j
pascal@1290 25 mv .$ii .$j
pascal@1290 26 ln -s /usr/.moved$ii .$ii
pascal@1290 27 done
pascal@1290 28 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
pascal@1290 29 mv usr/bin/httpfs bin
pascal@1290 30 cp usr/lib/libfuse.so.2.* lib/libfuse.so.2
pascal@1290 31 mv usr/share/udhcpc/default.script .
pascal@1290 32 rm -rf usr
pascal@1290 33 mkdir -p usr/share/udhcpc
pascal@1290 34 mv default.script usr/share/udhcpc
pascal@1290 35 ln -s /cdrom/boot boot
pascal@2140 36 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free \
pascal@2140 37 bin/killall5 bin/seq ; do
pascal@1620 38 [ -e $ii ] || ln -s busybox $ii
pascal@1290 39 done
pascal@1290 40 mkdir cdrom .usr.rw
pascal@1290 41 COMPRESSION="gzip"