|
@@ -24,7 +24,7 @@ maxplayers="16"
|
|
|
ip="0.0.0.0"
|
|
ip="0.0.0.0"
|
|
|
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
|
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
|
|
|
fn_parms(){
|
|
fn_parms(){
|
|
|
-parms="-game czero +map ${defaultmap} -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} -maxplayers ${maxplayers}"
|
|
|
|
|
|
|
+parms="-game czero +map ${defaultmap} -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} -maxplayers ${maxplayers} +servercfgfile ${servercfg}"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#### Advanced Variables ####
|
|
#### Advanced Variables ####
|
|
@@ -99,7 +99,7 @@ getipwc=$(ip -o -4 addr|awk '{print $4 }'|grep -oe '\([0-9]\{1,3\}\.\?\)\{4\}'|g
|
|
|
if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then
|
|
if [ "${ip}" == "0.0.0.0" ]||[ "${ip}" == "" ]; then
|
|
|
if [ "${getipwc}" -ge "2" ]; then
|
|
if [ "${getipwc}" -ge "2" ]; then
|
|
|
echo -en "[\e[1;33m WARN \e[0;39m] Multiple active network interfaces.\n\n"
|
|
echo -en "[\e[1;33m WARN \e[0;39m] Multiple active network interfaces.\n\n"
|
|
|
- echo -en "Manually specify the IP you want to use in ${selfname}.\n"
|
|
|
|
|
|
|
+ echo -en "Manually specify the IP you want to use within the ${selfname} script.\n"
|
|
|
echo -en "Set ip=\"0.0.0.0\" to one of the following:\n"
|
|
echo -en "Set ip=\"0.0.0.0\" to one of the following:\n"
|
|
|
echo -en "${getip}\n"
|
|
echo -en "${getip}\n"
|
|
|
exit
|
|
exit
|