fix_glibc.sh 953 B

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