Browse Source

added a bypass for script that do not require this

pull/254/merge
Daniel Gibbs 11 years ago
parent
commit
5376f1ccfb
  1. 22
      functions/fn_glibcfix

22
functions/fn_glibcfix

@ -10,7 +10,8 @@ sleep 1
echo "" echo ""
} }
if [ -z $(command -v ldd) ]; then if [ "${gamename}" == "Insurgency" ]||[ "${gamename}" == "Garrys's Mod" ]||[ "${gamename}" == "Natural Selection 2" ]||[ "${gamename}" == "No More Room in Hell" ]||[ "${gamename}" == "Blade Symphony" ]||[ "${gamename}" == "Fistful of Frags" ]||[ "${gamename}" == "ARMA 3" ]; then
if [ -z $(command -v ldd) ]; then
echo "" echo ""
echo -e "\r\033[K\e[0;31mFAIL\e[0;39m GLIBC is not detected." echo -e "\r\033[K\e[0;31mFAIL\e[0;39m GLIBC is not detected."
sleep 1 sleep 1
@ -25,7 +26,7 @@ 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 215 ]; then elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215 ]; then
echo "GLIBC Fix required" echo "GLIBC Fix required"
echo "============================" echo "============================"
sleep 1 sleep 1
@ -43,14 +44,14 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
echo "Downloading Required files" echo "Downloading Required files"
echo "=================================" echo "================================="
sleep 1 sleep 1
if [ "${gamename}" == "Insurgency" ];then if [ "${gamename}" == "Insurgency" ]; then
fn_glibcfixmsg fn_glibcfixmsg
cd "${filesdir}/bin" cd "${filesdir}/bin"
wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libc.so.6 wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libc.so.6
wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/librt.so.1 wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/librt.so.1
wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libpthread.so.0 wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/Insurgency/dependencies/libpthread.so.0
sleep 1 sleep 1
elif [ "${gamename}" == "Garrys's Mod" ];then elif [ "${gamename}" == "Garrys's Mod" ]; then
fn_glibcfixmsg fn_glibcfixmsg
cd "${filesdir}/bin" cd "${filesdir}/bin"
wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6 wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
@ -59,26 +60,26 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6" cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
sleep 1 sleep 1
echo "" echo ""
elif [ "${gamename}" == "Natural Selection 2" ];then elif [ "${gamename}" == "Natural Selection 2" ]; then
fn_glibcfixmsg fn_glibcfixmsg
cd "${filesdir}" cd "${filesdir}"
wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/NaturalSelection2/dependencies/libm.so.6 wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/NaturalSelection2/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"
sleep 1 sleep 1
echo "" echo ""
elif [ "${gamename}" == "No More Room in Hell" ];then elif [ "${gamename}" == "No More Room in Hell" ]; then
fn_glibcfixmsg fn_glibcfixmsg
cd "${filesdir}" cd "${filesdir}"
wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/NoMoreRoomInHell/dependencies/libm.so.6 wget -nv -N 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"
sleep 1 sleep 1
echo "" echo ""
elif [ "${gamename}" == "Blade Symphony" ];then elif [ "${gamename}" == "Blade Symphony" ]; then
fn_glibcfixmsg fn_glibcfixmsg
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6" cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
sleep 1 sleep 1
echo "" echo ""
elif [ "${gamename}" == "Fistful of Frags" ];then elif [ "${gamename}" == "Fistful of Frags" ]; then
echo "Detected ${gamename}" echo "Detected ${gamename}"
sleep 1 sleep 1
echo "Downloading files for ${gamename} GLIBC Fix" echo "Downloading files for ${gamename} GLIBC Fix"
@ -87,7 +88,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/FistfulOfFrags/dependencies/libm.so.6 wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/FistfulOfFrags/dependencies/libm.so.6
sleep 1 sleep 1
echo "" echo ""
elif [ "${gamename}" == "ARMA 3" ];then elif [ "${gamename}" == "ARMA 3" ]; then
fn_glibcfixmsg fn_glibcfixmsg
cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6" cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
sleep 1 sleep 1
@ -98,4 +99,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
echo "GLIBC fix has been applied!" echo "GLIBC fix has been applied!"
sleep 1 sleep 1
echo "" echo ""
fi
else
sleep 0.1
fi fi
Loading…
Cancel
Save