fix_glibc.sh 1016 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. # LGSM fix_glibc.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Downloads required glibc files and applys teh glibc fix if required
  6. local modulename="Fix"
  7. local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  8. local libstdc_servers_array=( "ARMA 3" "Blade Symphony" "Garry's Mod" "Just Cause 2" )
  9. for libstdc_server in "${libstdc_servers_array[@]}"
  10. do
  11. if [ "${gamename}" == "${libstdc_server}" ]; then
  12. fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libstdc++.so.6" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5"
  13. fi
  14. done
  15. local libm_servers_array=( "Double Action: Boogaloo" "Fistful of Frags" "Insurgency" "Natural Selection 2" "NS2: Combat" "No More Room in Hell" )
  16. for libm_server in "${libm_servers_array[@]}"
  17. do
  18. if [ "${gamename}" == "${libm_server}" ]; then
  19. fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libm.so.6" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5"
  20. fi
  21. done
  22. export LD_LIBRARY_PATH=:"${libdir}"