|
@ -1,24 +1,101 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
# LinuxGSM fix_ro.sh module |
|
|
# LinuxGSM fix_kf.sh module |
|
|
# Author: Daniel Gibbs |
|
|
# Author: Daniel Gibbs |
|
|
# Contributors: http://linuxgsm.com/contrib |
|
|
# Contributors: http://linuxgsm.com/contrib |
|
|
# Website: https://linuxgsm.com |
|
|
# Website: https://linuxgsm.com |
|
|
# Description: Resolves issues with Red Orchestra. |
|
|
# Description: Resolves issues with Killing Floor. |
|
|
|
|
|
|
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
|
|
|
|
|
|
echo -e "applying webinterface ROOst.css fix." |
|
|
# echo -e "applying WebAdmin ROOst.css fix." |
|
|
echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
|
|
# echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
|
|
sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css" |
|
|
sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css" |
|
|
sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css" |
|
|
sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css" |
|
|
fn_sleep_time |
|
|
# echo -e "applying WebAdmin CharSet fix." |
|
|
echo -e "applying webinterface CharSet fix." |
|
|
# echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
|
|
echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
|
|
|
|
|
sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/uweb.int" |
|
|
sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/uweb.int" |
|
|
fn_sleep_time |
|
|
|
|
|
echo -e "applying Steam AppID fix." |
|
|
# get md5sum of steamclient.so |
|
|
sed -i 's/1210/1200/g' "${systemdir}/steam_appid.txt" |
|
|
if [ -f "${serverfiles}/system/steamclient.so" ]; then |
|
|
fn_sleep_time |
|
|
steamclientmd5=$(md5sum "${serverfiles}/system/steamclient.so" | awk '{print $1;}') |
|
|
|
|
|
fi |
|
|
|
|
|
#get md5sum of libtier0_s.so |
|
|
|
|
|
if [ -f "${serverfiles}/system/libtier0_s.so" ]; then |
|
|
|
|
|
libtier0_smd5=$(md5sum "${serverfiles}/system/libtier0_s.so" | awk '{print $1;}') |
|
|
|
|
|
fi |
|
|
|
|
|
#get md5sum of libvstdlib_s.so |
|
|
|
|
|
if [ -f "${serverfiles}/system/libvstdlib_s.so" ]; then |
|
|
|
|
|
libvstdlib_smd5=$(md5sum "${serverfiles}/system/libvstdlib_s.so" | awk '{print $1;}') |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# get md5sum of steamclient.so from steamcmd |
|
|
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then |
|
|
|
|
|
steamcmdsteamclientmd5=$(md5sum "${HOME}/.steam/steamcmd/linux32/steamclient.so" | awk '{print $1;}') |
|
|
|
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
|
|
|
|
|
steamcmdsteamclientmd5=$(md5sum "${steamcmddir}/linux32/steamclient.so" | awk '{print $1;}') |
|
|
|
|
|
elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" ]; then |
|
|
|
|
|
steamcmdsteamclientmd5=$(md5sum "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" | awk '{print $1;}') |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# get md5sum of libtier0_s.so from steamcmd |
|
|
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" ]; then |
|
|
|
|
|
steamcmdlibtier0_smd5=$(md5sum "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" | awk '{print $1;}') |
|
|
|
|
|
elif [ -f "${steamcmddir}/linux32/libtier0_s.so" ]; then |
|
|
|
|
|
steamcmdlibtier0_smd5=$(md5sum "${steamcmddir}/linux32/libtier0_s.so" | awk '{print $1;}') |
|
|
|
|
|
elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" ]; then |
|
|
|
|
|
steamcmdlibtier0_smd5=$(md5sum "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" | awk '{print $1;}') |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# get md5sum of libvstdlib_s.so from steamcmd |
|
|
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
|
|
|
|
|
steamcmdlibvstdlib_smd5=$(md5sum "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" | awk '{print $1;}') |
|
|
|
|
|
elif [ -f "${steamcmddir}/linux32/libvstdlib_s.so" ]; then |
|
|
|
|
|
steamcmdlibvstdlib_smd5=$(md5sum "${steamcmddir}/linux32/libvstdlib_s.so" | awk '{print $1;}') |
|
|
|
|
|
elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
|
|
|
|
|
steamcmdlibvstdlib_smd5=$(md5sum "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" | awk '{print $1;}') |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f "${serverfiles}/system/steamclient.so" ] || [ "${steamcmdsteamclientmd5}" != "${steamclientmd5}" ]; then |
|
|
|
|
|
fixname="steamclient.so x86" |
|
|
|
|
|
fn_fix_msg_start |
|
|
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then |
|
|
|
|
|
cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/system/steamclient.so" |
|
|
|
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
|
|
|
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/system/steamclient.so" |
|
|
|
|
|
elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" ]; then |
|
|
|
|
|
cp "${HOME}/.local/share/Steam/steamcmd/linux32/steamclient.so" "${serverfiles}/system/steamclient.so" |
|
|
|
|
|
fi |
|
|
|
|
|
fn_fix_msg_end |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f "${serverfiles}/system/libtier0_s.so" ] || [ "${steamcmdlibtier0_smd5}" != "${libtier0_smd5}" ]; then |
|
|
|
|
|
fixname="libtier0_s.so" |
|
|
|
|
|
fn_fix_msg_start |
|
|
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" ]; then |
|
|
|
|
|
cp "${HOME}/.steam/steamcmd/linux32/libtier0_s.so" "${serverfiles}/system/libtier0_s.so" |
|
|
|
|
|
elif [ -f "${steamcmddir}/linux32/libtier0_s.so" ]; then |
|
|
|
|
|
cp "${steamcmddir}/linux32/libtier0_s.so" "${serverfiles}/system/libtier0_s.so" |
|
|
|
|
|
elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" ]; then |
|
|
|
|
|
cp "${HOME}/.local/share/Steam/steamcmd/linux32/libtier0_s.so" "${serverfiles}/system/libtier0_s.so" |
|
|
|
|
|
fi |
|
|
|
|
|
fn_fix_msg_end |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f "${serverfiles}/system/libvstdlib_s.so" ] || [ "${steamcmdlibvstdlib_smd5}" != "${libvstdlib_smd5}" ]; then |
|
|
|
|
|
fixname="libvstdlib_s.so" |
|
|
|
|
|
fn_fix_msg_start |
|
|
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
|
|
|
|
|
cp "${HOME}/.steam/steamcmd/linux32/libvstdlib_s.so" "${serverfiles}/system/libvstdlib_s.so" |
|
|
|
|
|
elif [ -f "${steamcmddir}/linux32/libvstdlib_s.so" ]; then |
|
|
|
|
|
cp "${steamcmddir}/linux32/libvstdlib_s.so" "${serverfiles}/system/libvstdlib_s.so" |
|
|
|
|
|
elif [ -f "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" ]; then |
|
|
|
|
|
cp "${HOME}/.local/share/Steam/steamcmd/linux32/libvstdlib_s.so" "${serverfiles}/system/libvstdlib_s.so" |
|
|
|
|
|
fi |
|
|
|
|
|
fn_fix_msg_end |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# if running install command |
|
|
|
|
|
if [ "${commandname}" == "INSTALL" ]; then |
|
|
echo -e "applying server name fix." |
|
|
echo -e "applying server name fix." |
|
|
fn_sleep_time |
|
|
fn_sleep_time |
|
|
echo -e "forcing server restart..." |
|
|
echo -e "forcing server restart..." |
|
@ -37,3 +114,4 @@ fn_sleep_time_5 |
|
|
exitbypass=1 |
|
|
exitbypass=1 |
|
|
command_stop.sh |
|
|
command_stop.sh |
|
|
fn_firstcommand_reset |
|
|
fn_firstcommand_reset |
|
|
|
|
|
fi |
|
|