diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index 80eec42ab..df71a4692 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Contributor: Summit Singh Thakur # Website: http://gameservermanagers.com -# Version: 090515 +# Version: 260515 #### Variables #### @@ -27,7 +27,7 @@ updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ -parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" +parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} -tickrate ${tickrate} +map ${defaultmap} -maxplayers ${maxplayers}" } #### Advanced Variables #### diff --git a/functions/fn_console b/functions/fn_console index ddaa47c58..d4b8c01a3 100644 --- a/functions/fn_console +++ b/functions/fn_console @@ -17,7 +17,7 @@ echo "Press \"CTRL+b d\" to exit console." fn_printwarningnl "Do NOT press CTRL+c to exit." echo "" while true; do - read -p "Continue? [y/N]" yn + read -e -i "y" -p "Continue? [y/N]" yn case $yn in [Yy]* ) break;; [Nn]* ) echo Exiting; return 1;; @@ -45,4 +45,4 @@ else * ) echo "Please answer yes or no.";; esac done -fi \ No newline at end of file +fi diff --git a/functions/fn_install_glibcfix b/functions/fn_install_glibcfix index 619dadfa0..d9ef9c246 100644 --- a/functions/fn_install_glibcfix +++ b/functions/fn_install_glibcfix @@ -84,6 +84,10 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215 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/libpthread.so.0 + elif [ "${gamename}" == "Left 4 Dead" ]; then + glibcversion="2.07" + fn_glibcfixmsg + cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/bin/libstdc++.so.6" # Natural Selection 2 elif [ "${gamename}" == "Natural Selection 2" ]; then glibcversion="2.15" @@ -122,4 +126,4 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215 : #Else glibcfix not required. fi fi -sleep 1 \ No newline at end of file +sleep 1 diff --git a/functions/fn_stop b/functions/fn_stop index 5f5a79b20..e0c67e54a 100644 --- a/functions/fn_stop +++ b/functions/fn_stop @@ -129,6 +129,8 @@ else fn_scriptlog "Stopped ${servername}" fi fi + # Remove lock file + rm -f "${rootdir}/${lockselfname}" sleep 1 echo -en "\n" } @@ -137,4 +139,4 @@ if [ "${gamename}" == "Teamspeak 3" ]; then fn_stop_teamspeak3 else fn_stop_tmux -fi \ No newline at end of file +fi