123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- RLREALLIBS="`find usr/lib -type f -name \*.so.\* | tr '\n' ' '`"
- for ONEREALLIB in $RLREALLIBS
- do
- BASEREALLIB="`basename $ONEREALLIB`"
- BASEREALNAME="`echo -n "$BASEREALLIB" | cut -f 1 -d '.'`"
- ln -snf $BASEREALLIB usr/lib/${BASEREALNAME}.so
- ln -snf $BASEREALLIB usr/lib/${BASEREALNAME}.so.5
- ln -snf $BASEREALLIB usr/lib/${BASEREALNAME}.so.6
- done
- if [ ! -e usr/lib/libreadline.so.5 ];then
- if [ ! -e lib/libreadline.so.5 ];then
- [ -e usr/lib/libreadline.so.6 ] && ln -s libreadline.so.6 usr/lib/libreadline.so.5
- [ -e lib/libreadline.so.6 ] && ln -s libreadline.so.6 lib/libreadline.so.5
- fi
- fi
- if [ ! -e usr/lib/libhistory.so.5 ];then
- if [ ! -e lib/libhistory.so.5 ];then
- [ -e usr/lib/libhistory.so.6 ] && ln -s libhistory.so.6 usr/lib/libhistory.so.5
- [ -e lib/libhistory.so.6 ] && ln -s libhistory.so.6 lib/libhistory.so.5
- fi
- fi
|