Browse Source

Fixed bug not detecting game

Fixed this bug not detecting certain games. However codes does not
display correctly. Will fix soon. quick fix until then
pull/254/merge
Daniel Gibbs 11 years ago
parent
commit
38d23c4fa5
  1. 36
      functions/fn_glibcfix

36
functions/fn_glibcfix

@ -2,7 +2,7 @@
# LGSM fn_glibcfix function # LGSM fn_glibcfix function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 231114 # Version: 011214
fn_glibcfixmsg(){ fn_glibcfixmsg(){
echo "GLIBC Fix required" echo "GLIBC Fix required"
@ -38,23 +38,6 @@ if [ -z $(command -v ldd) ]; then
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
done done
elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 213 ]; then
glibcversion="2.13"
fn_glibcfixmsg
# ARMA 3
if [ "${gamename}" == "ARMA 3" ]; then
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
# Just Cause 2
elif [ "${gamename}" == "Just Cause 2" ]; then
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
else
echo "error: Unable to detect game. Fix not applied"
fi
sleep 1
echo ""
echo "GLIBC fix has been applied!"
sleep 1
echo ""
elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215 ]; then elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215 ]; then
glibcversion="2.15" glibcversion="2.15"
fn_glibcfixmsg fn_glibcfixmsg
@ -88,6 +71,23 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
cd "${filesdir}" cd "${filesdir}"
wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgameservers/raw/master/NoMoreRoomInHell/dependencies/libm.so.6 wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgameservers/raw/master/NoMoreRoomInHell/dependencies/libm.so.6
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6" cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 213 ]; then
glibcversion="2.13"
fn_glibcfixmsg
# ARMA 3
if [ "${gamename}" == "ARMA 3" ]; then
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
# Just Cause 2
elif [ "${gamename}" == "Just Cause 2" ]; then
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
else
echo "error: Unable to detect game. Fix not applied"
fi
sleep 1
echo ""
echo "GLIBC fix has been applied!"
sleep 1
echo ""
else else
echo "error: Unable to detect game. Fix not applied" echo "error: Unable to detect game. Fix not applied"
fi fi

Loading…
Cancel
Save