|
|
@@ -662,15 +662,12 @@ fn_details_spark(){
|
|
|
}
|
|
|
|
|
|
fn_details_squad(){
|
|
|
+ rconport=$(cat ${servercfgdir}/Rcon.cfg | grep "Port=" | cut -c6-) # obtain rcon port from file
|
|
|
echo -e "netstat -atunp | grep SquadServer"
|
|
|
echo -e ""
|
|
|
{
|
|
|
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
echo -e "> Game\tINBOUND\t${port}\tudp"
|
|
|
- # Don't do arithmetics if ever the port wasn't a numeric value
|
|
|
- if [ "${port}" -eq "${port}" ]; then
|
|
|
- echo -e "> RAW\tINBOUND\t$((port+1))\tudp"
|
|
|
- fi
|
|
|
echo -e "> Query\tINBOUND\t${queryport}\tudp"
|
|
|
echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
|
|
|
} | column -s $'\t' -t
|