wok-current annotate slitaz-loram-http/stuff/loram.rootfs @ rev 4893
speech-dispatcher: fix depends
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Feb 06 19:58:31 2010 +0000 (2010-02-06) |
parents | 6509db5aa948 |
children | 3cdfaefe3387 |
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@1290 | 15 ln -s /usr/.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@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@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@1290 | 40 mkdir cdrom .usr.rw |
pascal@1290 | 41 COMPRESSION="gzip" |