From 317dac85bb396fc64d439025ad1e5159468adea6 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 13 Aug 2016 15:02:55 +0100 Subject: [PATCH] Revert "Removed glibc fix for gmod until fixed" This reverts commit 9e3148cb2b21ca528bf8090dd8c48a93066273c3. --- lgsm/functions/fix_glibc.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lgsm/functions/fix_glibc.sh b/lgsm/functions/fix_glibc.sh index 5a7585c49..73c2815b8 100644 --- a/lgsm/functions/fix_glibc.sh +++ b/lgsm/functions/fix_glibc.sh @@ -24,20 +24,20 @@ do fi done -#local libc_servers_array=( "Garry's Mod" ) -#for libc_server in "${libc_servers_array[@]}" -#do -# if [ "${gamename}" == "${libc_server}" ]; then -# fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libc.so.6" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5" -# fi -#done +local libc_servers_array=( "Garry's Mod" ) +for libc_server in "${libc_servers_array[@]}" +do + if [ "${gamename}" == "${libc_server}" ]; then + fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libc.so.6" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5" + fi +done -#local libpthread_servers_array=( "Garry's Mod" ) -#for libpthread_server in "${libpthread_servers_array[@]}" -#do -# if [ "${gamename}" == "${libpthread_server}" ]; then -# fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libpthread.so.0" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5" -# fi -#done +local libpthread_servers_array=( "Garry's Mod" ) +for libpthread_server in "${libpthread_servers_array[@]}" +do + if [ "${gamename}" == "${libpthread_server}" ]; then + fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libpthread.so.0" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5" + fi +done -export LD_LIBRARY_PATH=:"${libdir}" +export LD_LIBRARY_PATH=:"${libdir}" \ No newline at end of file