gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
748 B
20 lines
748 B
#!/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]}")")"
|
|
|
|
# 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
|
|
mkdir -p "${serverfiles}"
|
|
if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then
|
|
cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/steamclient.so"
|
|
elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then
|
|
cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/steamclient.so"
|
|
fi
|
|
fn_fix_msg_end
|
|
fi
|
|
|