wok-stable rev 954
slitaz-loram*: ensure to move all need library for insmod
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 27 13:40:34 2008 +0000 (2008-06-27) |
parents | 1c1dad96a8f3 |
children | a9ff8c135e36 |
files | slitaz-loram-cdrom/stuff/loram.extract slitaz-loram-cdrom/stuff/loram.rootfs slitaz-loram/stuff/loram.extract slitaz-loram/stuff/loram.rootfs |
line diff
1.1 --- a/slitaz-loram-cdrom/stuff/loram.extract Fri Jun 27 13:15:01 2008 +0000 1.2 +++ b/slitaz-loram-cdrom/stuff/loram.extract Fri Jun 27 13:40:34 2008 +0000 1.3 @@ -30,9 +30,9 @@ 1.4 done 1.5 rm -rf usr/.moved 1.6 fi 1.7 -if [ -e lib/libz.so ]; then 1.8 - mv lib/libz.so* usr/lib/ 1.9 -fi 1.10 +for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do 1.11 + [ -e $ii ] && mv $ii* usr/lib/ 1.12 +done 1.13 if [ -L root ]; then 1.14 rm -f etc/keymap.conf etc/locale.conf etc/resolv.conf etc/TZ etc/motd 1.15 [ -d var/log.ORG ] && mv -f var/log.ORG var/log
2.1 --- a/slitaz-loram-cdrom/stuff/loram.rootfs Fri Jun 27 13:15:01 2008 +0000 2.2 +++ b/slitaz-loram-cdrom/stuff/loram.rootfs Fri Jun 27 13:40:34 2008 +0000 2.3 @@ -1,5 +1,8 @@ 2.4 echo "$(du -hs /usr | cut -f1) were used by /usr" 2.5 -mv ./usr/lib/libz.so* ./usr/lib/libstdc++.so* ./lib 2.6 +lib/ld-*.so --list ./sbin/insmod | grep /usr/lib | cut -d\ -f3 | \ 2.7 +while read ii; do 2.8 + mv .${ii%%.so.*}.so* ./lib 2.9 +done 2.10 for ii in /sbin /lib /bin; do 2.11 mkdir -p ./usr/.moved$ii 2.12 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
3.1 --- a/slitaz-loram/stuff/loram.extract Fri Jun 27 13:15:01 2008 +0000 3.2 +++ b/slitaz-loram/stuff/loram.extract Fri Jun 27 13:40:34 2008 +0000 3.3 @@ -17,6 +17,6 @@ 3.4 mv "usr/.moved/$file" "$file" 3.5 done 3.6 rm -rf usr/.moved 3.7 -for i in lib/libz.so lib/libstdc++.so ; do 3.8 - [ -e $i ] && mv $i* usr/lib/ 3.9 +for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do 3.10 + [ -e $ii ] && mv $ii* usr/lib/ 3.11 done
4.1 --- a/slitaz-loram/stuff/loram.rootfs Fri Jun 27 13:15:01 2008 +0000 4.2 +++ b/slitaz-loram/stuff/loram.rootfs Fri Jun 27 13:40:34 2008 +0000 4.3 @@ -1,5 +1,8 @@ 4.4 echo "$(du -hs ./usr | cut -f1) were used by /usr" 4.5 -mv ./usr/lib/libz.so* ./usr/lib/libstdc++.so* ./lib 4.6 +lib/ld-*.so --list ./sbin/insmod | grep /usr/lib | cut -d\ -f3 | \ 4.7 +while read ii; do 4.8 + mv .${ii%%.so.*}.so* ./lib 4.9 +done 4.10 for ii in /sbin /lib /bin; do 4.11 mkdir -p ./usr/.moved$ii 4.12 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \