fix_glibc.sh 567 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # LGSM fix_glibc.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="020116"
  6. info_glibc.sh
  7. if [ $(printf '%s\n$glibc_required\n' $glibc_version | sort -V | head -n 1) != ${glibc_required} ]; then
  8. echo "Version $(ldd --version | sed -n '1s/.* //p') is lower than $glibc_required"
  9. if [ "${glibcfix}" == "yes" ]; then
  10. echo "applied glibc fix"
  11. export LD_LIBRARY_PATH=:${lgsmdir}/lib/ubuntu12.04/i386
  12. else
  13. echo "no glibc fix available you need to upgrade bro!!"
  14. fi
  15. else
  16. echo "GLIBC is OK no fix required"
  17. fi