Daniel Gibbs 9 роки тому
батько
коміт
a629527bae
1 змінених файлів з 20 додано та 9 видалено
  1. 20 9
      lgsm/functions/command_details.sh

+ 20 - 9
lgsm/functions/command_details.sh

@@ -350,6 +350,24 @@ fn_details_cod(){
 	} | column -s $'\t' -t
 	} | column -s $'\t' -t
 }
 }
 
 
+fn_details_coduo(){
+	echo -e "netstat -atunp | grep coduo_lnxded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_details_cod2(){
+	echo -e "netstat -atunp | grep cod2_lnxded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
 fn_details_dontstarve(){
 fn_details_dontstarve(){
 	echo -e "netstat -atunp | grep dontstarve"
 	echo -e "netstat -atunp | grep dontstarve"
 	echo -e ""
 	echo -e ""
@@ -652,15 +670,6 @@ fn_details_ark(){
 	} | column -s $'\t' -t
 	} | column -s $'\t' -t
 }
 }
 
 
-fn_details_cod2(){
-	echo -e "netstat -atunp | grep cod2_lnxded"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
 # Run checks and gathers details to display.
 # Run checks and gathers details to display.
 
 
 fn_display_details() {
 fn_display_details() {
@@ -717,6 +726,8 @@ fn_display_details() {
 		fn_details_ark
 		fn_details_ark
 	elif [ "${gamename}" == "Call of Duty" ]; then
 	elif [ "${gamename}" == "Call of Duty" ]; then
 		fn_details_cod
 		fn_details_cod
+	elif [ "${gamename}" == "Call of Duty: United Offensive" ]; then
+		fn_details_coduo
 	elif [ "${gamename}" == "Call of Duty 2" ]; then
 	elif [ "${gamename}" == "Call of Duty 2" ]; then
 		fn_details_cod2
 		fn_details_cod2
 	elif [ "${gamename}" == "Hurtworld" ]; then
 	elif [ "${gamename}" == "Hurtworld" ]; then