fix_ins.sh 615 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # LinuxGSM fix_ins.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Insurgency.
  6. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  7. # Fixes: ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory.
  8. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}:${serverfiles}/bin"
  9. # Fixes: issue #529 - gamemode not passed to debug or start.
  10. if [ "${commandname}" == "DEBUG" ]; then
  11. defaultmap="\"${defaultmap}\""
  12. else
  13. defaultmap="\\\"${defaultmap}\\\""
  14. fi