Sfoglia il codice sorgente

Fixes for insserver

This update fixes issues raised since recent update to insserver

*fixed issue causing the following error ./srcds_linux: error while
loading shared libraries: libtier0.so: cannot open shared object file:
No such file or directory

* glibc fix working again with insserver
Daniel Gibbs 11 anni fa
parent
commit
5c914f6e97

BIN
Insurgency/dependencies/libm.so.6


+ 5 - 2
functions/fn_debug

@@ -2,7 +2,7 @@
 # LGSM fn_debug function
 # LGSM fn_debug function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
 # Website: http://danielgibbs.co.uk
-# Version: 210115
+# Version: 110415
 
 
 # Description: Runs the server without tmux. Runs direct from the terminal.
 # Description: Runs the server without tmux. Runs direct from the terminal.
 
 
@@ -53,7 +53,10 @@ sleep 1
 echo -en "\n"
 echo -en "\n"
 cd "${executabledir}"
 cd "${executabledir}"
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
-	${executable} ${parms} -debug
+	if [ "${gamename}" == "Insurgency" ]; then
+		fn_insfix
+	fi
+	${executable} ${parms} -fn_debug
 else
 else
 	${executable} ${parms}
 	${executable} ${parms}
 fi
 fi

+ 6 - 1
functions/fn_functions

@@ -2,7 +2,7 @@
 # LGSM fn_functions function
 # LGSM fn_functions function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
 # Website: http://danielgibbs.co.uk
-# Version: 190215
+# Version: 110415
 
 
 # Description: Defines all functions to allow download and execution of functions using fn_runfunction.
 # Description: Defines all functions to allow download and execution of functions using fn_runfunction.
 # This function is called first before any other function. Without this file other functions would not load.
 # This function is called first before any other function. Without this file other functions would not load.
@@ -101,6 +101,11 @@ functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
+fn_insfix(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
 fn_logs(){
 fn_logs(){
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction

+ 9 - 0
functions/fn_insfix

@@ -0,0 +1,9 @@
+#!/bin/bash
+# LGSM fn_insfix function
+# Author: Daniel Gibbs
+# Website: http://danielgibbs.co.uk
+# Version: 110415
+
+# Description: Resolves ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory
+
+export LD_LIBRARY_PATH=:${filesdir}:${filesdir}/bin:{$LD_LIBRARY_PATH}

+ 2 - 1
functions/fn_install_glibcfix

@@ -2,7 +2,7 @@
 # LGSM fn_install_glibcfix function
 # LGSM fn_install_glibcfix function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-# Version: 220315
+# Version: 110415
 
 
 fn_glibcfixmsg(){
 fn_glibcfixmsg(){
 echo ""
 echo ""
@@ -79,6 +79,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
 		fn_glibcfixmsg
 		fn_glibcfixmsg
 		cd "${filesdir}/bin"
 		cd "${filesdir}/bin"
 		wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/libc.so.6
 		wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/libc.so.6
+		wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/libm.so.6
 		wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/librt.so.1
 		wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/librt.so.1
 		wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/libpthread.so.0
 		wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/libpthread.so.0
 	# Natural Selection 2
 	# Natural Selection 2

+ 4 - 1
functions/fn_start

@@ -2,7 +2,7 @@
 # LGSM fn_start function
 # LGSM fn_start function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
 # Website: http://danielgibbs.co.uk
-# Version: 160214
+# Version: 110415
 
 
 # Description: Starts the server.
 # Description: Starts the server.
 
 
@@ -74,6 +74,9 @@ if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 	startfix=1
 	startfix=1
 	fn_csgofix
 	fn_csgofix
 fi
 fi
+if [ "${gamename}" == "Insurgency" ]; then
+	fn_insfix
+fi
 fn_details_config
 fn_details_config
 fn_parms
 fn_parms
 fn_logs
 fn_logs