From 1b38006b9d0350efee9e8b0b5d1c1302bc838df7 Mon Sep 17 00:00:00 2001 From: Scarsz Date: Fri, 26 May 2017 19:25:05 -0700 Subject: [PATCH] remove irrelevant entry for Squad details, read RCON port from cfg file --- lgsm/functions/command_details.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh index 530f869e0..9af448e76 100644 --- a/lgsm/functions/command_details.sh +++ b/lgsm/functions/command_details.sh @@ -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