FIXUPHACK 730 B

123456789101112131415161718192021
  1. if [ -d lib ];then
  2. if [ "`ls -1 lib/ | grep 'libiw'`" != "" ];then
  3. UPKGVERSION=`ls -1 lib/ | grep 'libiw.so.[0-9]' | head -n 1 | rev | cut -f 1 -d '.' | rev`
  4. OLDPKGVER=`expr $UPKGVERSION - 1`
  5. ln -s libiw.so.${UPKGVERSION} lib/libiw.so.${OLDPKGVER}
  6. OLDPKGVER=`expr $OLDPKGVER - 1`
  7. ln -s libiw.so.${UPKGVERSION} lib/libiw.so.${OLDPKGVER}
  8. fi
  9. fi
  10. if [ -d usr/lib ];then
  11. if [ "`ls -1 usr/lib/ | grep 'libiw'`" != "" ];then
  12. UPKGVERSION=`ls -1 usr/lib/ | grep 'libiw.so.[0-9]' | head -n 1 | rev | cut -f 1 -d '.' | rev`
  13. OLDPKGVER=`expr $UPKGVERSION - 1`
  14. ln -s libiw.so.${UPKGVERSION} usr/lib/libiw.so.${OLDPKGVER}
  15. OLDPKGVER=`expr $OLDPKGVER - 1`
  16. ln -s libiw.so.${UPKGVERSION} usr/lib/libiw.so.${OLDPKGVER}
  17. fi
  18. fi