wok-next annotate slitaz-loram-http/stuff/loram.rootfs @ rev 8470
Up: transmission to 2.20.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 07 16:36:59 2011 +0000 (2011-02-07) |
parents | 3cdfaefe3387 |
children |
rev | line source |
---|---|
pascal@1290 | 1 echo "$(du -hs /usr | cut -f1) were used by /usr" |
pascal@4099 | 2 for j in insmod unmkcromfs unsquashfs ; do |
pascal@4099 | 3 lib/ld-*.so --list *bin/$j 2> /dev/null | grep /usr/lib | cut -d\ -f3 | \ |
pascal@4099 | 4 while read ii; do |
pascal@4099 | 5 mv .${ii%%.so.*}.so* ./lib |
pascal@4099 | 6 done |
pascal@1290 | 7 done |
pascal@1290 | 8 for ii in /sbin /lib /bin; do |
pascal@1290 | 9 mkdir -p ./usr/.moved$ii |
pascal@1290 | 10 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \ |
pascal@1290 | 11 libcap; do |
pascal@1290 | 12 for k in $(grep -s ^$ii /var/lib/tazpkg/installed/$j/files.list) ; do |
pascal@1290 | 13 [ -f .$k ] || continue |
pascal@1290 | 14 mv .$k ./usr/.moved$k |
pascal@5535 | 15 ln -s /.moved$k .$k |
pascal@1290 | 16 done |
pascal@1290 | 17 done |
pascal@1290 | 18 done |
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@3945 | 21 /lib/libnss_c* ; 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@5535 | 26 ln -s /.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@4454 | 37 bin/killall5 bin/seq bin/find bin/xargs bin/patch; do |
pascal@1620 | 38 [ -e $ii ] || ln -s busybox $ii |
pascal@1290 | 39 done |
pascal@5715 | 40 [ -e bin/vcsa2txt ] || ln -s busybox bin/conspy |
pascal@1290 | 41 mkdir cdrom .usr.rw |
pascal@1290 | 42 COMPRESSION="gzip" |