Christian
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
28 additions and
4 deletions
-
lgsm/functions/core_functions.sh
-
lgsm/functions/fix.sh
-
lgsm/functions/fix_cs.sh
-
lgsm/functions/fix_hw.sh
|
@ -325,6 +325,11 @@ functionfile="${FUNCNAME[0]}" |
|
|
fn_fetch_function |
|
|
fn_fetch_function |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fix_cs.sh(){ |
|
|
|
|
|
functionfile="${FUNCNAME[0]}" |
|
|
|
|
|
fn_fetch_function |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
fix_csgo.sh(){ |
|
|
fix_csgo.sh(){ |
|
|
functionfile="${FUNCNAME[0]}" |
|
|
functionfile="${FUNCNAME[0]}" |
|
|
fn_fetch_function |
|
|
fn_fetch_function |
|
|
|
@ -40,6 +40,8 @@ if [ "${commandname}" != "INSTALL" ]&&[ -z "${fixbypass}" ]; then |
|
|
fix_arma3.sh |
|
|
fix_arma3.sh |
|
|
elif [ "${shortname}" == "ark" ]; then |
|
|
elif [ "${shortname}" == "ark" ]; then |
|
|
fix_ark.sh |
|
|
fix_ark.sh |
|
|
|
|
|
elif [ "${shortname}" == "cs" ]; then |
|
|
|
|
|
fix_cs.sh |
|
|
elif [ "${shortname}" == "csgo" ]; then |
|
|
elif [ "${shortname}" == "csgo" ]; then |
|
|
fix_csgo.sh |
|
|
fix_csgo.sh |
|
|
elif [ "${shortname}" == "cmw" ]; then |
|
|
elif [ "${shortname}" == "cmw" ]; then |
|
|
|
@ -0,0 +1,21 @@ |
|
|
|
|
|
#!/bin/bash |
|
|
|
|
|
# LinuxGSM fix_cs.sh function |
|
|
|
|
|
# Author: Christian Birk |
|
|
|
|
|
# Website: https://linuxgsm.com |
|
|
|
|
|
# Description: Resolves various issues with Counter Strike. |
|
|
|
|
|
|
|
|
|
|
|
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
|
|
|
|
|
|
|
|
|
if [ "${shortname}" == "cs" ]; then |
|
|
|
|
|
# Fixes: steamclient.so: cannot open shared object file: No such file or directory |
|
|
|
|
|
if [ ! -f "${serverfiles}/steamclient.so" ]; then |
|
|
|
|
|
fixname="steamclient.so x86" |
|
|
|
|
|
fn_fix_msg_start |
|
|
|
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then |
|
|
|
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/steamclient.so" >> "${lgsmlog}" |
|
|
|
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
|
|
|
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/steamclient.so" >> "${lgsmlog}" |
|
|
|
|
|
fi |
|
|
|
|
|
fn_fix_msg_end |
|
|
|
|
|
fi |
|
|
|
|
|
fi |
|
@ -15,8 +15,6 @@ if [ "${shortname}" == "hw" ]; then |
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86/steamclient.so" >> "${lgsmlog}" |
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86/steamclient.so" >> "${lgsmlog}" |
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then |
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86/steamclient.so" >> "${lgsmlog}" |
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86/steamclient.so" >> "${lgsmlog}" |
|
|
else |
|
|
|
|
|
: |
|
|
|
|
|
fi |
|
|
fi |
|
|
fn_fix_msg_end |
|
|
fn_fix_msg_end |
|
|
fi |
|
|
fi |
|
@ -27,8 +25,6 @@ if [ "${shortname}" == "hw" ]; then |
|
|
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86_64/steamclient.so" >> "${lgsmlog}" |
|
|
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86_64/steamclient.so" >> "${lgsmlog}" |
|
|
elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then |
|
|
elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then |
|
|
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86_64/steamclient.so" >> "${lgsmlog}" |
|
|
cp "${steamcmddir}/linux64/steamclient.so" "${serverfiles}/Hurtworld_Data/Plugins/x86_64/steamclient.so" >> "${lgsmlog}" |
|
|
else |
|
|
|
|
|
: |
|
|
|
|
|
fi |
|
|
fi |
|
|
fn_fix_msg_end |
|
|
fn_fix_msg_end |
|
|
fi |
|
|
fi |
|
|