|
@@ -1,5 +1,5 @@
|
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
-# LGSM command_details.sh function
|
|
|
|
|
|
|
+# LinuxGSM command_details.sh function
|
|
|
# Author: Daniel Gibbs
|
|
# Author: Daniel Gibbs
|
|
|
# Contributor: UltimateByte
|
|
# Contributor: UltimateByte
|
|
|
# Website: https://gameservermanagers.com
|
|
# Website: https://gameservermanagers.com
|
|
@@ -70,7 +70,7 @@ fn_details_disk(){
|
|
|
# Total: 15G
|
|
# Total: 15G
|
|
|
# Used: 8.4G
|
|
# Used: 8.4G
|
|
|
# Available: 5.7G
|
|
# Available: 5.7G
|
|
|
- # LGSM Total: 1G
|
|
|
|
|
|
|
+ # LinuxGSM Total: 1G
|
|
|
# Serverfiles: 961M
|
|
# Serverfiles: 961M
|
|
|
# Backups: 2G
|
|
# Backups: 2G
|
|
|
|
|
|
|
@@ -82,7 +82,7 @@ fn_details_disk(){
|
|
|
echo -e "${blue}Total:\t${default}${totalspace}"
|
|
echo -e "${blue}Total:\t${default}${totalspace}"
|
|
|
echo -e "${blue}Used:\t${default}${usedspace}"
|
|
echo -e "${blue}Used:\t${default}${usedspace}"
|
|
|
echo -e "${blue}Available:\t${default}${availspace}"
|
|
echo -e "${blue}Available:\t${default}${availspace}"
|
|
|
- echo -e "${blue}LGSM Total:\t${default}${rootdirdu}"
|
|
|
|
|
|
|
+ echo -e "${blue}LinuxGSM Total:\t${default}${rootdirdu}"
|
|
|
echo -e "${blue}Serverfiles:\t${default}${filesdirdu}"
|
|
echo -e "${blue}Serverfiles:\t${default}${filesdirdu}"
|
|
|
if [ -d "${backupdir}" ]; then
|
|
if [ -d "${backupdir}" ]; then
|
|
|
echo -e "${blue}Backups:\t${default}${backupdirdu}"
|
|
echo -e "${blue}Backups:\t${default}${backupdirdu}"
|
|
@@ -315,7 +315,7 @@ fn_details_ports(){
|
|
|
|
|
|
|
|
parmslocation="${red}UNKNOWN${default}"
|
|
parmslocation="${red}UNKNOWN${default}"
|
|
|
# engines/games that require editing in the config file
|
|
# engines/games that require editing in the config file
|
|
|
- local ports_edit_array=( "avalanche" "dontstarve" "idtech2" "idtech3" "idtech3_ql" "lwjgl2" "projectzomboid" "quake" "refractor" "realvirtuality" "renderware" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "unreal3" "TeamSpeak 3" "Mumble" "7 Days To Die" )
|
|
|
|
|
|
|
+ local ports_edit_array=( "avalanche" "Ballistic Overkill" "dontstarve" "idtech2" "idtech3" "idtech3_ql" "lwjgl2" "projectzomboid" "quake" "refractor" "realvirtuality" "renderware" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "unreal3" "TeamSpeak 3" "Mumble" "7 Days To Die" )
|
|
|
for port_edit in "${ports_edit_array[@]}"
|
|
for port_edit in "${ports_edit_array[@]}"
|
|
|
do
|
|
do
|
|
|
if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
|
|
if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
|
|
@@ -355,7 +355,7 @@ fn_details_ark(){
|
|
|
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
echo -e "> Game\tINBOUND\t${port}\tudp"
|
|
echo -e "> Game\tINBOUND\t${port}\tudp"
|
|
|
# Don't do arithmetics if ever the port wasn't a numeric value
|
|
# Don't do arithmetics if ever the port wasn't a numeric value
|
|
|
- if [ "${port}" -eq "${port}" ]; then
|
|
|
|
|
|
|
+ if [ "${port}" -eq "${port}" ]; then
|
|
|
echo -e "> RAW\tINBOUND\t$((port+1))\tudp"
|
|
echo -e "> RAW\tINBOUND\t$((port+1))\tudp"
|
|
|
fi
|
|
fi
|
|
|
echo -e "> Query\tINBOUND\t${queryport}\tudp"
|
|
echo -e "> Query\tINBOUND\t${queryport}\tudp"
|
|
@@ -363,6 +363,16 @@ fn_details_ark(){
|
|
|
} | column -s $'\t' -t
|
|
} | column -s $'\t' -t
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+fn_details_ballisticoverkill(){
|
|
|
|
|
+ echo -e "netstat -atunp | grep BODS.x86"
|
|
|
|
|
+ echo -e ""
|
|
|
|
|
+ {
|
|
|
|
|
+ echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
|
|
+ echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
|
|
|
|
|
+ echo -e "> Query\tINBOUND\t${queryport}\tudp"
|
|
|
|
|
+ } | column -s $'\t' -t
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
fn_details_avalanche(){
|
|
fn_details_avalanche(){
|
|
|
echo -e "netstat -atunp | grep Jcmp-Server"
|
|
echo -e "netstat -atunp | grep Jcmp-Server"
|
|
|
echo -e ""
|
|
echo -e ""
|
|
@@ -539,7 +549,7 @@ fn_details_realvirtuality(){
|
|
|
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
echo -e "> Game\tINBOUND\t${port}\tudp"
|
|
echo -e "> Game\tINBOUND\t${port}\tudp"
|
|
|
# Don't do arithmetics if ever the port wasn't a numeric value
|
|
# Don't do arithmetics if ever the port wasn't a numeric value
|
|
|
- if [ "${port}" -eq "${port}" ]; then
|
|
|
|
|
|
|
+ if [ "${port}" -eq "${port}" ]; then
|
|
|
echo -e "> Steam: Query\tINBOUND\t$((port+1))\tudp"
|
|
echo -e "> Steam: Query\tINBOUND\t$((port+1))\tudp"
|
|
|
echo -e "> Steam: Master traffic\tINBOUND\t$((port+2))\tudp"
|
|
echo -e "> Steam: Master traffic\tINBOUND\t$((port+2))\tudp"
|
|
|
echo -e "> Undocumented Port\tINBOUND\t$((port+3))\tudp"
|
|
echo -e "> Undocumented Port\tINBOUND\t$((port+3))\tudp"
|
|
@@ -675,6 +685,20 @@ fn_details_terraria(){
|
|
|
} | column -s $'\t' -t
|
|
} | column -s $'\t' -t
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+fn_details_towerunite(){
|
|
|
|
|
+ echo -e "netstat -atunp | grep TowerServer"
|
|
|
|
|
+ echo -e ""
|
|
|
|
|
+ {
|
|
|
|
|
+ echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
|
|
|
|
|
+ echo -e "> Game\tINBOUND\t${port}\ttcp"
|
|
|
|
|
+ # Don't do arithmetics if ever the port wasn't a numeric value
|
|
|
|
|
+ if [ "${port}" -eq "${port}" ]; then
|
|
|
|
|
+ echo -e "> Steam\tINBOUND\t$((port+1))\tudp"
|
|
|
|
|
+ fi
|
|
|
|
|
+ echo -e "> Query\tINBOUND\t${queryport}\tudp"
|
|
|
|
|
+ } | column -s $'\t' -t
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
fn_details_unreal(){
|
|
fn_details_unreal(){
|
|
|
echo -e "netstat -atunp | grep ucc-bin"
|
|
echo -e "netstat -atunp | grep ucc-bin"
|
|
|
echo -e ""
|
|
echo -e ""
|
|
@@ -800,6 +824,8 @@ fn_display_details() {
|
|
|
fn_details_sdtd
|
|
fn_details_sdtd
|
|
|
elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
|
|
elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
|
|
|
fn_details_ark
|
|
fn_details_ark
|
|
|
|
|
+ elif [ "${gamename}" == "Ballistic Overkill" ]; then
|
|
|
|
|
+ fn_details_ballisticoverkill
|
|
|
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
|
|
elif [ "${gamename}" == "Call of Duty: United Offensive" ]; then
|
|
@@ -811,7 +837,7 @@ fn_display_details() {
|
|
|
elif [ "${gamename}" == "Call of Duty: World at War" ]; then
|
|
elif [ "${gamename}" == "Call of Duty: World at War" ]; then
|
|
|
fn_details_codwaw
|
|
fn_details_codwaw
|
|
|
elif [ "${gamename}" == "Factorio" ]; then
|
|
elif [ "${gamename}" == "Factorio" ]; then
|
|
|
- fn_details_factorio
|
|
|
|
|
|
|
+ fn_details_factorio
|
|
|
elif [ "${gamename}" == "Hurtworld" ]; then
|
|
elif [ "${gamename}" == "Hurtworld" ]; then
|
|
|
fn_details_hurtworld
|
|
fn_details_hurtworld
|
|
|
elif [ "${gamename}" == "QuakeWorld" ]; then
|
|
elif [ "${gamename}" == "QuakeWorld" ]; then
|
|
@@ -824,8 +850,10 @@ fn_display_details() {
|
|
|
fn_details_quakelive
|
|
fn_details_quakelive
|
|
|
elif [ "${gamename}" == "TeamSpeak 3" ]; then
|
|
elif [ "${gamename}" == "TeamSpeak 3" ]; then
|
|
|
fn_details_teamspeak3
|
|
fn_details_teamspeak3
|
|
|
|
|
+ elif [ "${gamename}" == "Tower Unite" ]; then
|
|
|
|
|
+ fn_details_towerunite
|
|
|
elif [ "${gamename}" == "Multi Theft Auto" ]; then
|
|
elif [ "${gamename}" == "Multi Theft Auto" ]; then
|
|
|
- fn_details_mta
|
|
|
|
|
|
|
+ fn_details_mta
|
|
|
elif [ "${gamename}" == "Mumble" ]; then
|
|
elif [ "${gamename}" == "Mumble" ]; then
|
|
|
fn_details_mumble
|
|
fn_details_mumble
|
|
|
elif [ "${gamename}" == "Rust" ]; then
|
|
elif [ "${gamename}" == "Rust" ]; then
|