Просмотр исходного кода

Added glibcfix to run on start

Daniel Gibbs 10 лет назад
Родитель
Сommit
09ce09e102
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      lgsm/functions/fix.sh
  2. 1 1
      lgsm/functions/fix_glibc.sh

+ 1 - 0
lgsm/functions/fix.sh

@@ -42,6 +42,7 @@ if [ "${function_selfname}" != "command_install.sh" ]; then
 	elif [ "${gamename}" == "ARMA 3" ]; then
 		fix_arma3.sh	
 	fi
+	fix_glibc.sh
 fi
 
 # Fixes that are run on install only.

+ 1 - 1
lgsm/functions/fix_glibc.sh

@@ -9,7 +9,7 @@ info_glibc.sh
 if [ $(printf '%s\n$glibc_required\n' $glibc_version | sort -V | head -n 1) != $glibc_required ]; then
 	echo "Version $(ldd --version | sed -n '1s/.* //p') is lower than $glibc_required"
 	if [ ${glibcfix} == "yes" ]; then 
-		export LD_LIBRARY_PATH=:${filesdir}:${filesdir}/bin:{$LD_LIBRARY_PATH}
+		export LD_LIBRARY_PATH=:${lgsmdir}/lib/ubuntu12.04/i386
 	else
 		echo "no glibc fix available you need to upgrade bro!!"
 	fi