|
|
@@ -2,7 +2,7 @@
|
|
|
# LGSM fn_details function
|
|
|
# Author: Daniel Gibbs
|
|
|
# Website: http://gameservermanagers.com
|
|
|
-# Version: 280715
|
|
|
+# Version: 070915
|
|
|
|
|
|
# Description: Displays server infomation.
|
|
|
|
|
|
@@ -19,7 +19,7 @@ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
|
|
|
echo -e "\e[34mKernel:\t\e[0m${kernel}"
|
|
|
echo -e "\e[34mHostname:\t\e[0m$HOSTNAME"
|
|
|
echo -e "\e[34mtmux:\t\e[0m${tmuxv}"
|
|
|
- echo -e "\e[34mGLIBC:\t\e[0m${glibcv}"
|
|
|
+ echo -e "\e[34mGLIBC:\t\e[0m${glibcv}"
|
|
|
} >> .fn_details_distro
|
|
|
column -s $'\t' -t .fn_details_distro
|
|
|
rm -f .fn_details_distro
|
|
|
@@ -31,7 +31,7 @@ echo -e "\e[93mPerformance\e[0m"
|
|
|
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
|
|
|
{
|
|
|
echo -e "\e[34mUptime:\t\e[0m${days}d, ${hours}h, ${minutes}m"
|
|
|
- echo -e "\e[34mAvg Load:\t\e[0m${load}"
|
|
|
+ echo -e "\e[34mAvg Load:\t\e[0m${load}"
|
|
|
} >> .fn_details_performance
|
|
|
column -s $'\t' -t .fn_details_performance
|
|
|
rm -f .fn_details_performance
|
|
|
@@ -39,7 +39,7 @@ echo -e ""
|
|
|
{
|
|
|
echo -e "\e[34mMem:\t\e[34mtotal\t used\t free\e[0m"
|
|
|
echo -e "\e[34mPhysical:\t\e[0m${physmemtotal}\t${physmemused}\t${physmemfree}\e[0m"
|
|
|
- echo -e "\e[34mSwap:\t\e[0m${swaptotal}\t${swapused}\t${swapfree}\e[0m"
|
|
|
+ echo -e "\e[34mSwap:\t\e[0m${swaptotal}\t${swapused}\t${swapfree}\e[0m"
|
|
|
} >> .fn_details_performance
|
|
|
column -s $'\t' -t .fn_details_performance
|
|
|
rm -f .fn_details_performance
|
|
|
@@ -497,6 +497,38 @@ fn_details_statusbottom
|
|
|
|
|
|
}
|
|
|
|
|
|
+fn_details_terraria(){
|
|
|
+fn_check_ip
|
|
|
+fn_parms
|
|
|
+fn_details_config
|
|
|
+fn_details_distro
|
|
|
+fn_details_os
|
|
|
+fn_details_performance
|
|
|
+fn_details_disk
|
|
|
+fn_details_gameserver
|
|
|
+fn_details_backup
|
|
|
+fn_details_commandlineparms
|
|
|
+echo -e ""
|
|
|
+echo -e "\e[92mPorts\e[0m"
|
|
|
+printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
|
|
|
+echo -e "Change ports by editing the command-line"
|
|
|
+echo -e "parameters in ${selfname}."
|
|
|
+echo -e ""
|
|
|
+echo -e "Useful port diagnostic command:"
|
|
|
+echo -e "netstat -atunp | grep terraia"
|
|
|
+echo -e ""
|
|
|
+{
|
|
|
+ echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
+ echo -e "> Game\tINBOUND\t${port}\ttcp"
|
|
|
+ echo -e "> Query\tINBOUND\t${queryport}\ttcp"
|
|
|
+ echo -e "> Rcon\tINBOUND\t${rconport}\ttcp"
|
|
|
+} >> .fn_details_ports
|
|
|
+column -s $'\t' -t .fn_details_ports
|
|
|
+rm -f .fn_details_ports
|
|
|
+fn_details_statusbottom
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
fn_details_teamspeak3(){
|
|
|
fn_details_config
|
|
|
fn_details_distro
|
|
|
@@ -703,6 +735,8 @@ elif [ "${engine}" == "spark" ]; then
|
|
|
fn_details_spark
|
|
|
elif [ "${engine}" == "starbound" ]; then
|
|
|
fn_details_starbound
|
|
|
+elif [ "${engine}" == "terraria" ]; then
|
|
|
+ fn_details_terraria
|
|
|
elif [ "${engine}" == "unity3d" ]; then
|
|
|
fn_details_unity3d
|
|
|
elif [ "${engine}" == "unreal" ] || [ "${engine}" == "unreal2" ]; then
|
|
|
@@ -713,4 +747,4 @@ elif [ "${gamename}" == "Teamspeak 3" ]; then
|
|
|
fn_details_teamspeak3
|
|
|
else
|
|
|
fn_printerrornl "Unable to detect server engine."
|
|
|
-fi
|
|
|
+fi
|