Browse Source

Merge branch 'functions-renaming-merge'

Daniel Gibbs 10 years ago
parent
commit
731a7f7023
100 changed files with 1316 additions and 1228 deletions
  1. 5 5
      7DaysToDie/sdtdserver
  2. 5 5
      ARKSurvivalEvolved/arkserver
  3. 7 7
      Arma3/arma3server
  4. 5 5
      BlackMesa/bmdmserver
  5. 5 5
      BladeSymphony/bsserver
  6. 5 5
      CounterStrike/csserver
  7. 5 5
      CounterStrikeConditionZero/csczserver
  8. 4 7
      CounterStrikeGlobalOffensive/csgoserver
  9. 5 5
      CounterStrikeSource/cssserver
  10. 5 5
      DayOfDefeat/dodserver
  11. 5 5
      DayOfDefeatSource/dodsserver
  12. 5 5
      DeathmatchClassic/dmcserver
  13. 5 5
      DontStarveTogether/dstserver
  14. 5 5
      DoubleActionBoogaloo/dabserver
  15. 5 5
      FistfulOfFrags/fofserver
  16. 5 5
      GarrysMod/gmodserver
  17. 5 5
      HalfLife2Deathmatch/hl2dmserver
  18. 5 5
      HalfLifeDeathmatch/hldmserver
  19. 5 5
      HalfLifeDeathmatchSource/hldmsserver
  20. 4 4
      Hurtworld/hwserver
  21. 5 5
      Insurgency/insserver
  22. 5 5
      JustCause2/jc2server
  23. 5 5
      KillingFloor/kfserver
  24. 5 5
      Left4Dead/l4dserver
  25. 5 5
      Left4Dead2/l4d2server
  26. 5 5
      Mumble/mumbleserver
  27. 5 5
      NS2Combat/ns2cserver
  28. 5 5
      NaturalSelection2/ns2server
  29. 5 5
      NoMoreRoomInHell/nmrihserver
  30. 5 5
      OpposingForce/opforserver
  31. 5 5
      PiratesVikingandKnightsII/pvkiiserver
  32. 5 5
      ProjectZomboid/pzserver
  33. 2 1
      README.md
  34. 5 5
      RedOrchestra/roserver
  35. 5 5
      Ricochet/ricochetserver
  36. 4 4
      SeriousSam3BFE/ss3sserver
  37. 5 5
      StarBound/sbserver
  38. 5 5
      TeamFortress2/tf2server
  39. 5 5
      TeamFortressClassic/tfcserver
  40. 4 4
      TeamSpeak3/ts3server
  41. 5 5
      Teeworlds/twserver
  42. 5 5
      Terraria/terrariaserver
  43. 5 5
      UnrealTournament2004/ut2k4server
  44. 4 4
      UnrealTournament99/ut99server
  45. 12 0
      functions/README.md
  46. 3 5
      functions/check.sh
  47. 2 2
      functions/check_ip.sh
  48. 3 3
      functions/check_logs.sh
  49. 2 2
      functions/check_root.sh
  50. 2 2
      functions/check_steamcmd.sh
  51. 2 2
      functions/check_steamuser.sh
  52. 3 3
      functions/check_systemdir.sh
  53. 2 2
      functions/check_tmux.sh
  54. 5 5
      functions/command_backup.sh
  55. 6 6
      functions/command_console.sh
  56. 11 11
      functions/command_debug.sh
  57. 46 46
      functions/command_details.sh
  58. 26 26
      functions/command_install.sh
  59. 15 15
      functions/command_monitor.sh
  60. 21 21
      functions/command_start.sh
  61. 10 10
      functions/command_stop.sh
  62. 0 0
      functions/command_update.sh
  63. 9 9
      functions/command_validate.sh
  64. 3 3
      functions/compress_unreal2_maps.sh
  65. 3 3
      functions/compress_ut99_maps.sh
  66. 373 0
      functions/core_functions.sh
  67. 427 0
      functions/core_getopt.sh
  68. 1 1
      functions/core_messages.sh
  69. 2 2
      functions/dev_debug.sh
  70. 3 3
      functions/dev_detect_deps.sh
  71. 4 4
      functions/email.sh
  72. 6 6
      functions/email_test.sh
  73. 2 2
      functions/fix_arma3.sh
  74. 2 2
      functions/fix_csgo.sh
  75. 2 2
      functions/fix_glibc.sh
  76. 2 2
      functions/fix_ins.sh
  77. 7 315
      functions/fn_functions
  78. 8 420
      functions/fn_getopt
  79. 8 8
      functions/info_config.sh
  80. 3 3
      functions/info_distro.sh
  81. 2 2
      functions/info_glibc.sh
  82. 2 2
      functions/info_ts3status.sh
  83. 2 2
      functions/install_complete.sh
  84. 2 2
      functions/install_config.sh
  85. 4 4
      functions/install_dl_ut2k4.sh
  86. 2 2
      functions/install_dl_ut99.sh
  87. 6 6
      functions/install_fix_kf.sh
  88. 6 6
      functions/install_fix_ro.sh
  89. 2 2
      functions/install_fix_steam.sh
  90. 6 6
      functions/install_fix_ut2k4.sh
  91. 2 2
      functions/install_fix_ut99.sh
  92. 2 2
      functions/install_gslt.sh
  93. 2 2
      functions/install_gsquery.sh
  94. 2 2
      functions/install_header.sh
  95. 2 2
      functions/install_logs.sh
  96. 3 3
      functions/install_retry.sh
  97. 2 2
      functions/install_serverdir.sh
  98. 12 12
      functions/install_serverfiles.sh
  99. 2 2
      functions/install_steamcmd.sh
  100. 3 3
      functions/install_ts3.sh

+ 5 - 5
7DaysToDie/sdtdserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -122,14 +122,14 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh
 
 

+ 5 - 5
ARKSurvivalEvolved/arkserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -120,13 +120,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 7 - 7
Arma3/arma3server

@@ -10,7 +10,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -25,11 +25,11 @@ steampass="password"
 
 
 # Start Variables
 # Start Variables
 ip="0.0.0.0"
 ip="0.0.0.0"
-srvport="2302"
+port="2302"
 updateonstart="off"
 updateonstart="off"
 
 
 fn_parms(){
 fn_parms(){
-parms="-netlog -ip=${ip} -port=${srvport} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory"
+parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory"
 }
 }
 
 
 # ARMA 3 Modules
 # ARMA 3 Modules
@@ -143,13 +143,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
BlackMesa/bmdmserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
BladeSymphony/bsserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
CounterStrike/csserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
CounterStrikeConditionZero/csczserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 4 - 7
CounterStrikeGlobalOffensive/csgoserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -149,13 +149,10 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
-
-getopt=$1
-fn_getopt
+core_functions.sh

+ 5 - 5
CounterStrikeSource/cssserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
DayOfDefeat/dodserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
DayOfDefeatSource/dodsserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
DeathmatchClassic/dmcserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
DontStarveTogether/dstserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -120,13 +120,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
DoubleActionBoogaloo/dabserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
FistfulOfFrags/fofserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
GarrysMod/gmodserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -137,13 +137,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
HalfLife2Deathmatch/hl2dmserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
HalfLifeDeathmatch/hldmserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -125,13 +125,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
HalfLifeDeathmatchSource/hldmsserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 4 - 4
Hurtworld/hwserver

@@ -139,14 +139,14 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh
 
 

+ 5 - 5
Insurgency/insserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
JustCause2/jc2server

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -119,13 +119,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
KillingFloor/kfserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -128,13 +128,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
Left4Dead/l4dserver

@@ -10,7 +10,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
Left4Dead2/l4d2server

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -125,13 +125,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
Mumble/mumbleserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -105,14 +105,14 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh
 
 

+ 5 - 5
NS2Combat/ns2cserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -131,13 +131,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
NaturalSelection2/ns2server

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -131,13 +131,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
NoMoreRoomInHell/nmrihserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
OpposingForce/opforserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
PiratesVikingandKnightsII/pvkiiserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
ProjectZomboid/pzserver

@@ -10,7 +10,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -120,13 +120,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 2 - 1
README.md

@@ -2,6 +2,7 @@
 <a href="http://gameservermanagers.com"><img src="https://github.com/dgibbs64/linuxgsm/blob/master/images/logo/lgsm-full-light.png" alt="linux Game Server Managers" width="600" /></a>
 <a href="http://gameservermanagers.com"><img src="https://github.com/dgibbs64/linuxgsm/blob/master/images/logo/lgsm-full-light.png" alt="linux Game Server Managers" width="600" /></a>
 
 
 [![Build Status](https://travis-ci.org/dgibbs64/linuxgsm.svg?branch=master)](https://travis-ci.org/dgibbs64/linuxgsm)
 [![Build Status](https://travis-ci.org/dgibbs64/linuxgsm.svg?branch=master)](https://travis-ci.org/dgibbs64/linuxgsm)
+[![Under Development](https://badge.waffle.io/dgibbs64/linuxgsm.svg?label=Under%20Development&title=Under%20Development)](http://waffle.io/dgibbs64/linuxgsm)
 
 
 The Linux Game Server Managers are command line tools for quick, simple deployment and management of various dedicated game servers and voice comms servers.
 The Linux Game Server Managers are command line tools for quick, simple deployment and management of various dedicated game servers and voice comms servers.
 
 
@@ -49,4 +50,4 @@ If you want to donate to the project you can via PayPal, Flattr or Gratipay. I h
 	<li><a href="https://twitter.com/dangibbsuk">Twitter</li>
 	<li><a href="https://twitter.com/dangibbsuk">Twitter</li>
 	<li><a href="https://www.facebook.com/linuxgsm">Facebook</li>
 	<li><a href="https://www.facebook.com/linuxgsm">Facebook</li>
 	<li><a href="https://plus.google.com/+Gameservermanagers1">Google+</li>
 	<li><a href="https://plus.google.com/+Gameservermanagers1">Google+</li>
-</ul>
+</ul>

+ 5 - 5
RedOrchestra/roserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -124,13 +124,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
Ricochet/ricochetserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 4 - 4
SeriousSam3BFE/ss3sserver

@@ -123,13 +123,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
StarBound/sbserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -119,13 +119,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
TeamFortress2/tf2server

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -131,13 +131,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
TeamFortressClassic/tfcserver

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -126,13 +126,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 4 - 4
TeamSpeak3/ts3server

@@ -103,13 +103,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
Teeworlds/twserver

@@ -10,7 +10,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -122,13 +122,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
Terraria/terrariaserver

@@ -10,7 +10,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -121,13 +121,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 5 - 5
UnrealTournament2004/ut2k4server

@@ -9,7 +9,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="201215"
+version="271215"
 
 
 #### Variables ####
 #### Variables ####
 
 
@@ -114,13 +114,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 4 - 4
UnrealTournament99/ut99server

@@ -113,13 +113,13 @@ fn_runfunction(){
 	fn_getgithubfile "functions/${functionfile}" 1
 	fn_getgithubfile "functions/${functionfile}" 1
 }
 }
 
 
-fn_functions(){
-# Functions are defined in fn_functions.
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_functions
+core_functions.sh
 
 
 getopt=$1
 getopt=$1
-fn_getopt
+core_getopt.sh

+ 12 - 0
functions/README.md

@@ -2,3 +2,15 @@
 
 
 These functions are universal functions that work in all scripts.
 These functions are universal functions that work in all scripts.
 
 
+<h2>Function Names</h2>
+Functions have been named to give an idea of what the function does.
+
+* core: Essential functions that are will always run first.
+* command: Primary command function.
+* check: Runs checks that will either halt on or fix an issue.
+* dev: development functions.
+* fix: Applies a game server specific fix.
+* info: retrieves information from a source such as config file or the OS.
+* install: Functions related to the installer.
+* monitor: Functions related to monitor.
+* update: Functions that update the game server.

+ 3 - 5
functions/check.sh

@@ -2,7 +2,7 @@
 # LGSM fn_check function
 # LGSM fn_check function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Overall function for managing checks.
 # Description: Overall function for managing checks.
 # Runs checks that will either halt on or fix an issue.
 # Runs checks that will either halt on or fix an issue.
@@ -23,7 +23,7 @@ fi
 no_check_logs=( debug details install map-compressor )
 no_check_logs=( debug details install map-compressor )
 fn_module_compare "${cmd}" "${no_check_logs[@]}"
 fn_module_compare "${cmd}" "${no_check_logs[@]}"
 if [ $? != 0 ]; then
 if [ $? != 0 ]; then
-	fn_check_logs
+	check_logs.sh
 fi
 fi
 
 
 check_ip=( debug )
 check_ip=( debug )
@@ -43,6 +43,4 @@ check_ip=( start )
 fn_module_compare "${cmd}" "${no_check_logs[@]}"
 fn_module_compare "${cmd}" "${no_check_logs[@]}"
 if [ $? != 0 ]; then
 if [ $? != 0 ]; then
 	check_tmux.sh
 	check_tmux.sh
-fi
-
-#fn_check_ts3status # may need to move out of checks
+fi

+ 2 - 2
functions/fn_check_ip → functions/check_ip.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_ip function
+# LGSM check_ip.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Automatically identifies the server interface IP.
 # Description: Automatically identifies the server interface IP.
 # If multiple interfaces are detected the user will need to manualy set using ip="0.0.0.0".
 # If multiple interfaces are detected the user will need to manualy set using ip="0.0.0.0".

+ 3 - 3
functions/fn_check_logs → functions/check_logs.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_logs function
+# LGSM check_logs.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Checks that log files exist on server start
 # Description: Checks that log files exist on server start
 
 
@@ -13,5 +13,5 @@ if [ ! -d "${scriptlogdir}" ]; then
 	fn_printinfo "Checking for log files: Creating log files"
 	fn_printinfo "Checking for log files: Creating log files"
 	echo -en "\n"
 	echo -en "\n"
 	checklogs=1
 	checklogs=1
-	fn_install_logs
+	install_logs.sh
 fi
 fi

+ 2 - 2
functions/fn_check_root → functions/check_root.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_root function
+# LGSM check_root.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 if [ $(whoami) = "root" ]; then
 if [ $(whoami) = "root" ]; then
 	fn_printfailnl "Do NOT run this script as root!"
 	fn_printfailnl "Do NOT run this script as root!"

+ 2 - 2
functions/fn_check_steamcmd → functions/check_steamcmd.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_steamcmd function
+# LGSM check_steamcmd.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD
 # Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD
 
 

+ 2 - 2
functions/fn_check_steamuser → functions/check_steamuser.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_steamuser function
+# LGSM check_steamuser.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 if [ "${steamuser}" == "username" ]; then
 if [ "${steamuser}" == "username" ]; then
 	fn_printfailnl "Steam login not set. Update steamuser."	
 	fn_printfailnl "Steam login not set. Update steamuser."	

+ 3 - 3
functions/fn_check_systemdir → functions/check_systemdir.sh

@@ -1,10 +1,10 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_systemdir function
+# LGSM check_systemdir.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
-if [ ! -e "${systemdir}" ]; then
+if [ ! -d "${systemdir}" ]; then
 	fn_printfailnl "Cannot access ${systemdir}: No such directory"
 	fn_printfailnl "Cannot access ${systemdir}: No such directory"
 	exit 1
 	exit 1
 fi
 fi

+ 2 - 2
functions/fn_check_tmux → functions/check_tmux.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_tmux function
+# LGSM check_tmux.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Checks if tmux is installed as too many users do not RTFM or know how to use Google.
 # Checks if tmux is installed as too many users do not RTFM or know how to use Google.
 
 

+ 5 - 5
functions/fn_backup → functions/command_backup.sh

@@ -1,14 +1,14 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_backup function
+# LGSM command_backup.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Creates a .tar.gz file in the backup directory.
 # Description: Creates a .tar.gz file in the backup directory.
 
 
 local modulename="Backup"
 local modulename="Backup"
-fn_check_root
-fn_check_systemdir
+check_root.sh
+check_systemdir.sh
 backupname="${servicename}-$(date '+%Y-%m-%d-%H%M%S')"
 backupname="${servicename}-$(date '+%Y-%m-%d-%H%M%S')"
 echo ""
 echo ""
 echo "${gamename} Backup"
 echo "${gamename} Backup"
@@ -34,7 +34,7 @@ if [ "${tmuxwc}" -eq 1 ]; then
 	while true; do
 	while true; do
 		read -p "Stop ${servicename} while running the backup? [y/N]" yn
 		read -p "Stop ${servicename} while running the backup? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) fn_stop; break;;
+		[Yy]* ) command_stop.sh; break;;
 		[Nn]* ) break;;
 		[Nn]* ) break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 6 - 6
functions/fn_console → functions/command_console.sh

@@ -1,14 +1,14 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_console function
+# LGSM command_console.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Gives access to the server tmux console.
 # Description: Gives access to the server tmux console.
 
 
 local modulename="Console"
 local modulename="Console"
-fn_check_root
-fn_check_systemdir
+check_root.sh
+check_systemdir.sh
 echo ""
 echo ""
 echo "${gamename} Console"
 echo "${gamename} Console"
 echo "============================"
 echo "============================"
@@ -26,7 +26,7 @@ esac
 done
 done
 fn_printdots "Starting"
 fn_printdots "Starting"
 sleep 1
 sleep 1
-fn_check_tmux
+check_tmux.sh
 tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
 tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
 if [ "${tmuxwc}" -eq 1 ]; then
 if [ "${tmuxwc}" -eq 1 ]; then
 	fn_printoknl "Starting"
 	fn_printoknl "Starting"
@@ -40,7 +40,7 @@ else
 	while true; do
 	while true; do
 		read -p "Do you want to start the server? [y/N]" yn
 		read -p "Do you want to start the server? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) fn_start; break;;
+		[Yy]* ) command_start.sh; break;;
 		[Nn]* ) break;;
 		[Nn]* ) break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 11 - 11
functions/fn_debug → functions/command_debug.sh

@@ -1,17 +1,17 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_debug function
+# LGSM command_debug.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Runs the server without tmux. Runs direct from the terminal.
 # Description: Runs the server without tmux. Runs direct from the terminal.
 
 
 local modulename="Debug"
 local modulename="Debug"
-fn_check_root
-fn_check_systemdir
-fn_check_ip
-fn_check_logs
-fn_details_distro
+check_root.sh
+check_systemdir.sh
+check_ip.sh
+check_logs.sh
+info_distro.sh
 fn_parms
 fn_parms
 echo ""
 echo ""
 echo "${gamename} Debug"
 echo "${gamename} Debug"
@@ -45,7 +45,7 @@ fn_scriptlog "Starting debug"
 fn_printinfonl "Stopping any running servers"
 fn_printinfonl "Stopping any running servers"
 fn_scriptlog "Stopping any running servers"
 fn_scriptlog "Stopping any running servers"
 sleep 1
 sleep 1
-fn_stop
+command_stop.sh
 fn_printdots "Starting debug"
 fn_printdots "Starting debug"
 sleep 1
 sleep 1
 fn_printok "Starting debug"
 fn_printok "Starting debug"
@@ -56,11 +56,11 @@ cd "${executabledir}"
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
 	if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 	if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 		startfix=1
 		startfix=1
-		fn_csgofix
+		fix_csgo.sh
 	elif [ "${gamename}" == "Insurgency" ]; then
 	elif [ "${gamename}" == "Insurgency" ]; then
-		fn_insfix
+		fix_ins.sh
 	elif [ "${gamename}" == "ARMA 3" ]; then
 	elif [ "${gamename}" == "ARMA 3" ]; then
-		fn_arma3fix	
+		fix_arma3.sh	
 	fi
 	fi
 	${executable} ${parms} -debug
 	${executable} ${parms} -debug
 else
 else

+ 46 - 46
functions/fn_details → functions/command_details.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_details function
+# LGSM command_details.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="211215"
+lgsm_version="271215"
 
 
 # Description: Displays server infomation.
 # Description: Displays server infomation.
 
 
@@ -105,7 +105,7 @@ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
 
 
 	# online status
 	# online status
 	if [ "${gamename}" == "Teamspeak 3" ]; then
 	if [ "${gamename}" == "Teamspeak 3" ]; then
-		fn_check_ts3status
+		info_ts3status.sh
 		if [ "${ts3status}" = "Server seems to have died" ] || [ "${ts3status}"	= "No server running (ts3server.pid is missing)" ]; then
 		if [ "${ts3status}" = "Server seems to have died" ] || [ "${ts3status}"	= "No server running (ts3server.pid is missing)" ]; then
 			echo -e "\e[34mStatus:\t\e[0;31mOFFLINE\e[0m"
 			echo -e "\e[34mStatus:\t\e[0;31mOFFLINE\e[0m"
 		else
 		else
@@ -226,9 +226,9 @@ echo -e ""
 # Engine Specific details
 # Engine Specific details
 
 
 fn_details_avalanche(){
 fn_details_avalanche(){
-fn_check_ip
-fn_details_config
-fn_details_distro
+check_ip.sh
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -252,9 +252,9 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_dontstarve(){
 fn_details_dontstarve(){
-fn_check_ip
-fn_details_config
-fn_details_distro
+check_ip.sh
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -278,9 +278,9 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_projectzomboid(){
 fn_details_projectzomboid(){
-fn_check_ip
-fn_details_config
-fn_details_distro
+check_ip.sh
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -305,10 +305,10 @@ fn_details_statusbottom
 
 
 
 
 fn_details_realvirtuality(){
 fn_details_realvirtuality(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -339,10 +339,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_seriousengine35(){
 fn_details_seriousengine35(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -368,10 +368,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_source(){
 fn_details_source(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -400,10 +400,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_spark(){
 fn_details_spark(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -438,10 +438,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_starbound(){
 fn_details_starbound(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -469,8 +469,8 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_teamspeak3(){
 fn_details_teamspeak3(){
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -497,10 +497,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_teeworlds(){
 fn_details_teeworlds(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -525,10 +525,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_terraria(){
 fn_details_terraria(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -555,10 +555,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_sdtd(){
 fn_details_sdtd(){
-fn_check_ip
+fn_check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -602,7 +602,7 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_hurtworld(){
 fn_details_hurtworld(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
 fn_details_config
 fn_details_config
 fn_details_distro
 fn_details_distro
@@ -633,10 +633,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_unreal(){
 fn_details_unreal(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -690,10 +690,10 @@ fn_details_statusbottom
 }
 }
 
 
 fn_details_ark(){
 fn_details_ark(){
-fn_check_ip
+check_ip.sh
 fn_parms
 fn_parms
-fn_details_config
-fn_details_distro
+info_config.sh
+info_distro.sh
 fn_details_os
 fn_details_os
 fn_details_performance
 fn_details_performance
 fn_details_disk
 fn_details_disk
@@ -734,7 +734,7 @@ if [ ! -e "${servercfgfullpath}" ]; then
 	fi
 	fi
 fi
 fi
 
 
-fn_details_glibc
+info_glibc.sh
 
 
 if [ "${engine}" == "avalanche" ]; then
 if [ "${engine}" == "avalanche" ]; then
 	fn_details_avalanche
 	fn_details_avalanche

+ 26 - 26
functions/fn_install → functions/command_install.sh

@@ -2,47 +2,47 @@
 # LGSM fn_install function
 # LGSM fn_install function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="251215"
+lgsm_version="271215"
 
 
-fn_check_root
-fn_install_header
-fn_install_serverdir
+check_root.sh
+install_header.sh
+install_serverdir.sh
 
 
 # Download and install
 # Download and install
 if [ "${gamename}" == "Unreal Tournament 2004" ]; then
 if [ "${gamename}" == "Unreal Tournament 2004" ]; then
-	fn_install_ut2k4filesdl
-	fn_install_ut2k4
-	fn_install_ut2k4key
+	install_dl_ut2k4.sh
+	install_ut2k4.sh
+	install_ut2k4_key.sh
 elif [ "${gamename}" == "Unreal Tournament 99" ]; then
 elif [ "${gamename}" == "Unreal Tournament 99" ]; then
-	fn_install_ut99filesdl
-	fn_install_ut99
+	install_dl_ut99.sh
+	install_ut99.sh
 elif [ "${gamename}" == "Teamspeak 3" ]; then
 elif [ "${gamename}" == "Teamspeak 3" ]; then
-	fn_install_ts3
+	install_ts3.sh
 elif [ ! -z "${appid}" ]; then
 elif [ ! -z "${appid}" ]; then
-	fn_install_steamcmd
-	fn_install_serverfiles
-	fn_install_steamfix
+	install_steamcmd.sh
+	install_serverfiles.sh
+	install_fix_steam.sh
 fi
 fi
 
 
 # Configuration
 # Configuration
-fn_install_glibcfix
-fn_install_logs
-fn_install_gsquery
-fn_install_config
+fix_glibc.sh
+install_logs.sh
+install_gsquery.sh
+install_config.sh
 if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
-	fn_install_gslt
-	fn_csgofix
+	install_gslt.sh
+	fix_csgo.sh
 elif [ "${gamename}" == "Teamspeak 3" ]; then
 elif [ "${gamename}" == "Teamspeak 3" ]; then
-	fn_install_ts3db
+	install_ts3db.sh
 elif [ "${gamename}" == "Team Fortress 2" ]; then
 elif [ "${gamename}" == "Team Fortress 2" ]; then
-	fn_install_gslt
+	install_gslt.sh
 elif [ "${gamename}" == "Killing Floor" ]; then
 elif [ "${gamename}" == "Killing Floor" ]; then
-	fn_install_kffix
+	install_fix_kf.sh
 elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
 elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
-	fn_install_rofix
+	install_fix_ro.sh
 elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
 elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
-	fn_install_ut2k4fix
+	install_fix_ut2k4.sh
 elif [ "${gamename}" == "Unreal Tournament 99" ]; then
 elif [ "${gamename}" == "Unreal Tournament 99" ]; then
-	fn_install_ut99fix
+	install_fix_ut99.sh
 fi
 fi
-fn_install_complete
+install_complete.sh

+ 15 - 15
functions/fn_monitor → functions/command_monitor.sh

@@ -1,18 +1,18 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_monitor function
+# LGSM command_monitor.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Monitors server by checking for running proccesses
 # Description: Monitors server by checking for running proccesses
-# then passes to fn_monitor_query.
+# then passes to monitor_gsquery.sh.
 
 
 local modulename="Monitor"
 local modulename="Monitor"
 
 
 fn_monitor_teamspeak3(){
 fn_monitor_teamspeak3(){
-fn_check_root
-fn_check_systemdir
-fn_logs
+check_root.sh
+check_systemdir.sh
+logs.sh
 fn_printdots "${servername}"
 fn_printdots "${servername}"
 fn_scriptlog "${servername}"
 fn_scriptlog "${servername}"
 sleep 1
 sleep 1
@@ -27,7 +27,7 @@ fi
 fn_printdots "Checking session: CHECKING"
 fn_printdots "Checking session: CHECKING"
 fn_scriptlog "Checking session: CHECKING"
 fn_scriptlog "Checking session: CHECKING"
 sleep 1
 sleep 1
-fn_check_ts3status
+info_ts3status.sh
 if [ "${ts3status}" = "Server is running" ]; then
 if [ "${ts3status}" = "Server is running" ]; then
 	fn_printok "Checking session: OK"
 	fn_printok "Checking session: OK"
 	fn_scriptlog "Checking session: OK"
 	fn_scriptlog "Checking session: OK"
@@ -45,7 +45,7 @@ else
 	if [ "${emailnotification}" = "on" ]; then
 	if [ "${emailnotification}" = "on" ]; then
 		subject="${servicename} Monitor - Restarting ${servername}"
 		subject="${servicename} Monitor - Restarting ${servername}"
 		actiontaken="restarted ${servername}"
 		actiontaken="restarted ${servername}"
-		fn_email
+		email.sh
 	fi
 	fi
 fi
 fi
 sleep 0.5
 sleep 0.5
@@ -54,10 +54,10 @@ fn_restart
 }
 }
 
 
 fn_monitor_tmux(){
 fn_monitor_tmux(){
-fn_check_root
-fn_check_systemdir
-fn_check_ip
-fn_details_config
+check_root.sh
+check_systemdir.sh
+check_ip.sh
+info_config.sh
 fn_printdots "${servername}"
 fn_printdots "${servername}"
 fn_scriptlog "${servername}"
 fn_scriptlog "${servername}"
 sleep 1
 sleep 1
@@ -83,7 +83,7 @@ if [ "${updatecheck}" = "0" ]||[ "${gamename}" == "Unreal Tournament 99" ]||[ "$
 		echo -en "\n"
 		echo -en "\n"
 
 
 		if [ "${engine}" == "avalanche" ]||[ "${engine}" == "goldsource" ]||[ "${engine}" == "realvirtuality" ]||[ "${engine}" == "source" ]||[ "${engine}" == "spark" ]||[ "${engine}" == "unity3d" ]||[ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
 		if [ "${engine}" == "avalanche" ]||[ "${engine}" == "goldsource" ]||[ "${engine}" == "realvirtuality" ]||[ "${engine}" == "source" ]||[ "${engine}" == "spark" ]||[ "${engine}" == "unity3d" ]||[ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
-			fn_monitor_query
+			monitor_gsquery.sh
 		fi
 		fi
 		exit $?
 		exit $?
 	else
 	else
@@ -95,10 +95,10 @@ if [ "${updatecheck}" = "0" ]||[ "${gamename}" == "Unreal Tournament 99" ]||[ "$
 			subject="${servicename} Monitor - Starting ${servername}"
 			subject="${servicename} Monitor - Starting ${servername}"
 			failurereason="${servicename} process not running"
 			failurereason="${servicename} process not running"
 			actiontaken="${servicename} has been restarted"
 			actiontaken="${servicename} has been restarted"
-			fn_email
+			email.sh
 		fi
 		fi
 		fn_scriptlog "Monitor is starting ${servername}"
 		fn_scriptlog "Monitor is starting ${servername}"
-		fn_start
+		command_start.sh
 	fi
 	fi
 else
 else
 	fn_printinfonl "SteamCMD is currently checking for updates"
 	fn_printinfonl "SteamCMD is currently checking for updates"

+ 21 - 21
functions/fn_start → functions/command_start.sh

@@ -1,23 +1,23 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_start function
+# LGSM command_start.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Starts the server.
 # Description: Starts the server.
 
 
 local modulename="Starting"
 local modulename="Starting"
 
 
 fn_start_teamspeak3(){
 fn_start_teamspeak3(){
-fn_check_root
-fn_check_systemdir
-fn_check_logs
-fn_check_ts3status
+check_root.sh
+check_systemdir.sh
+check_logs.sh
+info_ts3status.sh
 
 
 if [ "${ts3status}" != "Server is running" ]; then
 if [ "${ts3status}" != "Server is running" ]; then
 	# Will check for updates is updateonstart is yes
 	# Will check for updates is updateonstart is yes
 	if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]||[ "${updateonstart}" == "on" ]; then
 	if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]||[ "${updateonstart}" == "on" ]; then
-		fn_update_check
+		update_check.sh
 	fi	
 	fi	
 fi
 fi
 
 
@@ -38,7 +38,7 @@ if [ ! -e "${servercfgfullpath}" ]; then
 	touch "${servercfgfullpath}"
 	touch "${servercfgfullpath}"
 fi
 fi
 
 
-fn_logs
+logs.sh
 
 
 fn_printdots "${servername}"
 fn_printdots "${servername}"
 fn_scriptlog "${servername}"
 fn_scriptlog "${servername}"
@@ -58,7 +58,7 @@ date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 ./ts3server_startscript.sh start inifile="${servercfgfullpath}" > /dev/null 2>&1
 ./ts3server_startscript.sh start inifile="${servercfgfullpath}" > /dev/null 2>&1
 sleep 1
 sleep 1
-fn_check_ts3status
+info_ts3status.sh
 if [ "${ts3status}" = "Server seems to have died" ] || [ "${ts3status}"	= "No server running (ts3server.pid is missing)" ]; then
 if [ "${ts3status}" = "Server seems to have died" ] || [ "${ts3status}"	= "No server running (ts3server.pid is missing)" ]; then
 	fn_printfailnl "Unable to start ${servername}"
 	fn_printfailnl "Unable to start ${servername}"
 	fn_scriptlog "Unable to start ${servername}"
 	fn_scriptlog "Unable to start ${servername}"
@@ -73,38 +73,38 @@ echo -en "\n"
 }
 }
 
 
 fn_start_tmux(){
 fn_start_tmux(){
-fn_check_root
-fn_check_systemdir
-fn_check_ip
-fn_check_logs
+check_root.sh
+check_systemdir.sh
+check_ip.sh
+check_logs.sh
 if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 	startfix=1
 	startfix=1
-	fn_csgofix
+	fix_csgo.sh
 elif [ "${gamename}" == "Insurgency" ]; then
 elif [ "${gamename}" == "Insurgency" ]; then
-	fn_insfix
+	fix_ins.sh
 elif [ "${gamename}" == "ARMA 3" ]; then
 elif [ "${gamename}" == "ARMA 3" ]; then
-	fn_arma3fix	
+	fix_arma3.sh	
 fi
 fi
 
 
-fn_details_config
+info_config.sh
 fn_parms
 fn_parms
-fn_logs
+logs.sh
 
 
 tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
 tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
 # Will check for updates if updateonstart is yes
 # Will check for updates if updateonstart is yes
 if [ "${tmuxwc}" -eq 0 ]; then
 if [ "${tmuxwc}" -eq 0 ]; then
 	if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]||[ "${updateonstart}" == "on" ]; then
 	if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]||[ "${updateonstart}" == "on" ]; then
-		fn_update_check
+		update_check.sh
 	fi
 	fi
 fi
 fi
 
 
 fn_printdots "${servername}"
 fn_printdots "${servername}"
 fn_scriptlog "${servername}"
 fn_scriptlog "${servername}"
 sleep 1
 sleep 1
-fn_check_tmux
+check_tmux.sh
 
 
 if [ "${gamename}" != "Mumble" ]; then
 if [ "${gamename}" != "Mumble" ]; then
-	fn_check_steamcmd
+	check_steamcmd.sh
 fi
 fi
 
 
 if [ "${tmuxwc}" -eq 0 ]; then
 if [ "${tmuxwc}" -eq 0 ]; then

+ 10 - 10
functions/fn_stop → functions/command_stop.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_stop function
+# LGSM command_stop.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Stops the server.
 # Description: Stops the server.
 
 
@@ -29,12 +29,12 @@ sdtd_telnet(){
 }
 }
 
 
 fn_stop_teamspeak3(){
 fn_stop_teamspeak3(){
-fn_check_root
-fn_check_systemdir
+check_root.sh
+check_systemdir.sh
 fn_printdots "${servername}"
 fn_printdots "${servername}"
 fn_scriptlog "${servername}"
 fn_scriptlog "${servername}"
 sleep 1
 sleep 1
-fn_check_ts3status
+info_ts3status.sh
 if [ "${ts3status}" = "No server running (ts3server.pid is missing)" ]; then
 if [ "${ts3status}" = "No server running (ts3server.pid is missing)" ]; then
     fn_printfail "${servername} is already stopped"
     fn_printfail "${servername} is already stopped"
     fn_scriptlog "${servername} is already stopped"
     fn_scriptlog "${servername} is already stopped"
@@ -50,13 +50,13 @@ echo -en "\n"
 }
 }
 
 
 fn_stop_tmux(){
 fn_stop_tmux(){
-fn_check_root
-fn_check_systemdir
-fn_details_config
+check_root.sh
+check_systemdir.sh
+info_config.sh
 fn_printdots "${servername}"
 fn_printdots "${servername}"
 fn_scriptlog "${servername}"
 fn_scriptlog "${servername}"
 sleep 1
 sleep 1
-fn_check_tmux
+check_tmux.sh
 
 
 if [ "${gamename}" == "7 Days To Die" ] ; then
 if [ "${gamename}" == "7 Days To Die" ] ; then
     # if game is 7 Days To Die, we need special, graceful shutdown via telnet connection.
     # if game is 7 Days To Die, we need special, graceful shutdown via telnet connection.
@@ -70,7 +70,7 @@ if [ "${gamename}" == "7 Days To Die" ] ; then
     # If failed using localhost will use servers ip
     # If failed using localhost will use servers ip
     refused=$(echo -en "\n ${sdtdshutdown}"| grep "Timeout or EOF")
     refused=$(echo -en "\n ${sdtdshutdown}"| grep "Timeout or EOF")
     if [ -n "${refused}" ]; then
     if [ -n "${refused}" ]; then
-        fn_check_ip
+        check_ip.sh
         telnetip=${ip}
         telnetip=${ip}
         fn_printwarn "Attempting graceful shutdown via telnet: localhost failed"
         fn_printwarn "Attempting graceful shutdown via telnet: localhost failed"
         fn_scriptlog "Warning! Attempting graceful shutdown failed using localhost"
         fn_scriptlog "Warning! Attempting graceful shutdown failed using localhost"

+ 0 - 0
functions/command_update.sh


+ 9 - 9
functions/fn_validate → functions/command_validate.sh

@@ -1,16 +1,16 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_validate function
+# LGSM command_validate.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Runs a server validation.
 # Description: Runs a server validation.
 
 
 local modulename="Validate"
 local modulename="Validate"
 
 
 fn_validation(){
 fn_validation(){
-fn_check_steamcmd
-fn_check_steamuser	
+check_steamcmd.sh
+check_steamuser.sh	
 fn_printwarn "Validating may overwrite some customised files."
 fn_printwarn "Validating may overwrite some customised files."
 sleep 1
 sleep 1
 echo -en "\n"
 echo -en "\n"
@@ -37,18 +37,18 @@ fi
 
 
 if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
 	echo -e '\n'
 	echo -e '\n'
-	fn_csgofix
+	fix_csgo.sh
 fi
 fi
 fn_scriptlog "Checking complete"
 fn_scriptlog "Checking complete"
 }
 }
 
 
-fn_check_root
-fn_check_systemdir
+check_root.sh
+check_systemdir.sh
 tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
 tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
 if [ "${tmuxwc}" -eq 1 ]; then
 if [ "${tmuxwc}" -eq 1 ]; then
-    fn_stop
+    command_stop.sh
     fn_validation
     fn_validation
-    fn_start
+    command_start.sh
 else
 else
     fn_validation
     fn_validation
 fi
 fi

+ 3 - 3
functions/fn_compress_unreal2maps → functions/compress_unreal2_maps.sh

@@ -1,10 +1,10 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_compress_unreal2maps function
+# LGSM compress_unreal2_maps.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
-fn_check_root
+check_root.sh
 clear
 clear
 echo "${gamename} Map Compressor"
 echo "${gamename} Map Compressor"
 echo "============================"
 echo "============================"

+ 3 - 3
functions/fn_compress_ut99maps → functions/compress_ut99_maps.sh

@@ -1,10 +1,10 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_compress_ut99maps function
+# LGSM compress_ut99_maps.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
-fn_check_root
+check_root.sh
 clear
 clear
 echo "${gamename} Map Compressor"
 echo "${gamename} Map Compressor"
 echo "============================"
 echo "============================"

+ 373 - 0
functions/core_functions.sh

@@ -0,0 +1,373 @@
+#!/bin/bash
+# LGSM core_functions.sh function
+# Author: Daniel Gibbs
+# Website: http://gameservermanagers.com
+lgsm_version="271215"
+
+# Description: Defines all functions to allow download and execution of functions using fn_runfunction.
+# This function is called first before any other function. Without this file other functions would not load.
+
+#Legacy functions
+
+fn_functions(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+fn_getopt(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Core
+
+core_getopt.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+core_messages.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Command
+
+command_console.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_debug.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_details.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_backup.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_monitor.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_start.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_stop.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_validate.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+command_install.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+fn_restart(){
+local modulename="Restarting"
+info_config.sh
+fn_scriptlog "${servername}"
+command_stop.sh
+command_start.sh
+}
+
+
+# Checks
+
+check.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+check_ip.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+check_logs.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+check_root.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+check_steamcmd.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+check_steamuser.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+check_systemdir.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+check_tmux.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Compress
+
+compress_unreal2_maps.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+compress_ut99_maps.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Dev
+
+dev_debug.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+dev_detect_deps.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Fix
+
+fix_arma3.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+fix_csgo.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+fix_ins.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Info
+
+info_config.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+info_distro.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+info_glibc.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+info_ts3status.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Email
+
+email.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+email_test.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Logs
+
+logs.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Monitor
+
+monitor_gsquery.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+# Update
+
+update_check.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+update_functions.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+update_dl.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+update_functions.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+
+#
+## Installer functions
+#
+
+fn_autoinstall(){
+autoinstall=1
+command_install.sh
+}
+
+install_complete.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_config.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+fix_glibc.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_gsquery.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_gslt.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_header.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_fix_kf.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_logs.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_retry.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_fix_ro.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_serverdir.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+install_serverfiles.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_steamcmd.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_fix_steam.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_ts3.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_ut2k4.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_dl_ut2k4.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_fix_ut2k4.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_ut2k4_key.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_ut99.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_dl_ut99.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+install_fix_ut99.sh(){
+functionfile="${FUNCNAME}"
+fn_runfunction
+}
+
+# Calls on-screen messages
+core_messages.sh

+ 427 - 0
functions/core_getopt.sh

@@ -0,0 +1,427 @@
+#!/bin/bash
+# LGSM core_getopt.sh function
+# Author: Daniel Gibbs
+# Website: http://gameservermanagers.com
+lgsm_version="271215"
+
+# Description: getopt arguments.
+
+fn_getopt_generic(){
+case "$getopt" in
+	st|start)
+		command_start.sh;;
+	sp|stop)
+		command_stop.sh;;
+	r|restart)
+		fn_restart;;
+	u|update)
+		update_check.sh;;
+	fu|force-update|update-restart)
+		forceupdate=1;
+		update_check.sh;;
+	uf|update-functions)
+		update_functions.sh;;
+	v|validate)
+		command_validate.sh;;
+	m|monitor)
+		command_monitor.sh;;
+	et|email-test)
+		email_test.sh;;
+	d|details)
+		command_details.sh;;
+	b|backup)
+		command_backup.sh;;
+	c|console)
+		command_console.sh;;
+	d|debug)
+		command_debug.sh;;
+	dev|dev-debug)
+		dev_debug.sh;;
+	i|install)
+		command_install.sh;;
+	ai|auto-install)
+		fn_autoinstall;;
+	dd|depsdetect)
+		dev_detect_deps.sh;;
+	*)
+	echo "Usage: $0 [option]"
+	echo "${gamename} - Linux Game Server Manager - Version ${version}"
+	echo "http://gameservermanagers.com/${selfname}"
+	echo -e ""
+	echo -e "\e[93mCommands\e[0m"
+	{
+		echo -e "\e[34mstart\t\e[0mStart the server."
+		echo -e "\e[34mstop\t\e[0mStop the server."
+		echo -e "\e[34mrestart\t\e[0mRestart the server."
+		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD."
+		echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD."
+		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
+		echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD."
+		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
+		echo -e "\e[34memail-test\t\e[0mSends test monitor email."		
+		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
+		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
+		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
+		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
+		echo -e "\e[34minstall\t\e[0mInstall the server."
+		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
+	} | column -s $'\t' -t 
+	esac
+exit
+}
+
+fn_getopt_teamspeak3(){
+case "$getopt" in
+	st|start)
+		command_start.sh;;
+	sp|stop)
+		command_stop.sh;;
+	r|restart)
+		fn_restart;;
+	u|update)
+		update_check.sh;;
+	uf|update-functions)
+		update_functions.sh;;
+	m|monitor)
+		command_monitor.sh;;
+	et|email-test)
+		email_test.sh;;
+	d|details)
+		command_details.sh;;
+	b|backup)
+		command_backup.sh;;
+	dev|dev-debug)
+		dev_debug.sh;;		
+	i|install)
+		command_install.sh;;
+	ai|auto-install)
+		fn_autoinstall;;
+	dd|depsdetect)
+		dev_detect_deps.sh;;
+	*)
+	echo "Usage: $0 [option]"
+	echo "${gamename} - Linux Game Server Manager - Version ${version}"
+	echo "http://gameservermanagers.com/${selfname}"
+	echo -e ""
+	echo -e "\e[93mCommands\e[0m"
+	{
+		echo -e "\e[34mstart\t\e[0mStart the server."
+		echo -e "\e[34mstop\t\e[0mStop the server."
+		echo -e "\e[34mrestart\t\e[0mRestart the server."
+		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from teamspeak.com."
+		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
+		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
+		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
+		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
+		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
+		echo -e "\e[34minstall\t\e[0mInstall the server."
+		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
+	} | column -s $'\t' -t 
+	esac
+exit
+}
+
+fn_getopt_mumble(){
+case "$getopt" in
+	st|start)
+		command_start.sh;;
+	sp|stop)
+		command_stop.sh;;
+	r|restart)
+		fn_restart;;
+	uf|update-functions)
+		update_functions.sh;;
+	m|monitor)
+		command_monitor.sh;;
+	et|email-test)
+		email_test.sh;;
+	b|backup)
+		command_backup.sh;;
+	dev|dev-debug)
+		dev_debug.sh;;		
+	console)
+		command_console.sh;;
+	d|debug)
+		command_debug.sh;;
+	dd|depsdetect)
+		dev_detect_deps.sh;;
+	*)
+	echo "Usage: $0 [option]"
+	echo "${gamename} - Linux Game Server Manager - Version ${version}"
+	echo "http://gameservermanagers.com/${selfname}"
+	echo -e ""
+	echo -e "\e[93mCommands\e[0m"
+	{
+		echo -e "\e[34mstart\t\e[0mStart the server."
+		echo -e "\e[34mstop\t\e[0mStop the server."
+		echo -e "\e[34mrestart\t\e[0mRestart the server."
+		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
+		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
+		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
+		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
+		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."		
+		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
+	} | column -s $'\t' -t 
+	esac
+exit
+}
+
+fn_getopt_gmodserver(){
+case "$getopt" in
+	st|start)
+		command_start.sh;;
+	sp|stop)
+		command_stop.sh;;
+	r|restart)
+		fn_restart;;
+	u|update)
+		update_check.sh;;
+	fu|force-update|update-restart)
+		forceupdate=1;
+		update_check.sh;;
+	uf|update-functions)
+		update_functions.sh;;
+	v|validate)
+		command_validate.sh;;
+	m|monitor)
+		command_monitor.sh;;
+	et|email-test)
+		email_test.sh;;
+	d|details)
+		command_details.sh;;
+	b|backup)
+		command_backup.sh;;
+	c|console)
+		command_console.sh;;
+	d|debug)
+		command_debug.sh;;
+	dev|dev-debug)
+		dev_debug.sh;;		
+	i|install)
+		command_install.sh;;
+	ai|auto-install)
+		fn_autoinstall;;
+	dd|depsdetect)
+		dev_detect_deps.sh;;
+	gc|gmod-content)
+		fn_content_gmod;;
+	*)
+	echo "Usage: $0 [option]"
+	echo "${gamename} - Linux Game Server Manager - Version ${version}"
+	echo "http://gameservermanagers.com/${selfname}"
+	echo -e ""
+	echo -e "\e[93mCommands\e[0m"
+	{
+		echo -e "\e[34mstart\t\e[0mStart the server."
+		echo -e "\e[34mstop\t\e[0mStop the server."
+		echo -e "\e[34mrestart\t\e[0mRestart the server."
+		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD."
+		echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD."
+		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
+		echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD."
+		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
+		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
+		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
+		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
+		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
+		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
+		echo -e "\e[34minstall\t\e[0mInstall the server."
+		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
+		echo -e "\e[34mgmod-content\t\e[0mDownload gmod add-on content."
+	} | column -s $'\t' -t 
+	esac
+exit
+}
+
+fn_getopt_unreal(){
+case "$getopt" in
+	st|start)
+		command_start.sh;;
+	sp|stop)
+		command_stop.sh;;
+	r|restart)
+		fn_restart;;
+	uf|update-functions)
+		update_functions.sh;;
+	m|monitor)
+		command_monitor.sh;;
+	et|email-test)
+		email_test.sh;;
+	d|details)
+		command_details.sh;;
+	b|backup)
+		command_backup.sh;;
+	c|console)
+		command_console.sh;;
+	d|debug)
+		command_debug.sh;;
+	dev|dev-debug)
+		dev_debug.sh;;		
+	i|install)
+		command_install.sh;;
+	mc|map-compressor)
+		compress_ut99_maps.sh;;
+	dd|depsdetect)
+		dev_detect_deps.sh;;		
+	*)
+	echo "Usage: $0 [option]"
+	echo "${gamename} - Linux Game Server Manager - Version ${version}"
+	echo "http://gameservermanagers.com/${selfname}"
+	echo -e ""
+	echo -e "\e[93mCommands\e[0m"
+	{
+		echo -e "\e[34mstart\t\e[0mStart the server."
+		echo -e "\e[34mstop\t\e[0mStop the server."
+		echo -e "\e[34mrestart\t\e[0mRestart the server."
+		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
+		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
+		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
+		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
+		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
+		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
+		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
+		echo -e "\e[34minstall\t\e[0mInstall the server."
+		echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps."
+	} | column -s $'\t' -t 
+	esac
+exit
+}
+
+
+fn_getopt_unreal2(){
+case "$getopt" in
+	st|start)
+		command_start.sh;;
+	sp|stop)
+		command_stop.sh;;
+	r|restart)
+		fn_restart;;
+	u|update)
+		update_check.sh;;
+	fu|force-update|update-restart)
+		forceupdate=1;
+		update_check.sh;;
+	uf|update-functions)
+		update_functions.sh;;
+	v|validate)
+		command_validate.sh;;
+	m|monitor)
+		command_monitor.sh;;
+	et|email-test)
+		email_test.sh;;
+	d|details)
+		command_details.sh;;
+	b|backup)
+		command_backup.sh;;
+	c|console)
+		command_console.sh;;
+	d|debug)
+		command_debug.sh;;
+	dev|dev-debug)
+		dev_debug.sh;;		
+	i|install)
+		command_install.sh;;
+	ai|auto-install)
+		fn_autoinstall;;
+	dd|depsdetect)
+		dev_detect_deps.sh;;
+	mc|map-compressor)
+		compress_unreal2_maps.sh;;
+	*)
+	echo "Usage: $0 [option]"
+	echo "${gamename} - Linux Game Server Manager - Version ${version}"
+	echo "http://gameservermanagers.com/${selfname}"
+	echo -e ""
+	echo -e "\e[93mCommands\e[0m"
+	{
+		echo -e "\e[34mstart\t\e[0mStart the server."
+		echo -e "\e[34mstop\t\e[0mStop the server."
+		echo -e "\e[34mrestart\t\e[0mRestart the server."
+		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD."
+		echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD."
+		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
+		echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD."
+		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
+		echo -e "\e[34memail-test\t\e[0mSends test monitor email."		
+		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
+		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
+		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
+		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
+		echo -e "\e[34minstall\t\e[0mInstall the server."
+		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
+		echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps."		
+	} | column -s $'\t' -t 
+	esac
+exit
+}
+
+
+fn_getopt_ut2k4(){
+case "$getopt" in
+	st|start)
+		command_start.sh;;
+	sp|stop)
+		command_stop.sh;;
+	r|restart)
+		fn_restart;;
+	uf|update-functions)
+		update_functions.sh;;
+	m|monitor)
+		command_monitor.sh;;
+	et|email-test)
+		email_test.sh;;
+	d|details)
+		command_details.sh;;
+	b|backup)
+		command_backup.sh;;
+	c|console)
+		command_console.sh;;
+	d|debug)
+		command_debug.sh;;
+	dev|dev-debug)
+		dev_debug.sh;;		
+	i|install)
+		command_install.sh;;
+	mc|map-compressor)
+		compress_ut99_maps.sh;;
+	dd|depsdetect)
+		dev_detect_deps.sh;;		
+	*)
+	echo "Usage: $0 [option]"
+	echo "${gamename} - Linux Game Server Manager - Version ${version}"
+	echo "http://gameservermanagers.com/${selfname}"
+	echo -e ""
+	echo -e "\e[93mCommands\e[0m"
+	{
+		echo -e "\e[34mstart\t\e[0mStart the server."
+		echo -e "\e[34mstop\t\e[0mStop the server."
+		echo -e "\e[34mrestart\t\e[0mRestart the server."
+		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
+		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
+		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
+		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
+		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
+		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
+		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
+		echo -e "\e[34minstall\t\e[0mInstall the server."
+		echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps."
+	} | column -s $'\t' -t 
+	esac
+exit
+}
+
+if [ "${gamename}" == "Mumble" ]; then
+	fn_getopt__mumble
+elif [ "${gamename}" == "Teamspeak 3" ]; then
+	fn_getopt_teamspeak3
+elif [ "${engine}" == "unreal2" ]; then
+	if [ "${gamename}" == "Unreal Tournament 2004" ]; then
+		fn_getopt_ut2k4
+	else
+		fn_getopt_unreal2
+	fi
+elif [ "${engine}" == "unreal" ]; then
+	fn_getopt_unreal
+else
+	fn_getopt_generic
+fi

+ 1 - 1
functions/fn_messages → functions/core_messages.sh

@@ -2,7 +2,7 @@
 # LGSM fn_messages function
 # LGSM fn_messages function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Defines on-screen messages such as [  OK  ] and how script logs look.
 # Description: Defines on-screen messages such as [  OK  ] and how script logs look.
 
 

+ 2 - 2
functions/fn_debug_dev → functions/dev_debug.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_debug_dev function
+# LGSM dev_debug.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 if [ -f ".dev-debug" ]; then
 if [ -f ".dev-debug" ]; then
 	rm .dev-debug
 	rm .dev-debug

+ 3 - 3
functions/fn_deps_detect → functions/dev_detect_deps.sh

@@ -2,13 +2,13 @@
 # LGSM fn_dep_detect function
 # LGSM fn_dep_detect function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Detects dependencies the server binary requires.
 # Description: Detects dependencies the server binary requires.
 
 
 local modulename="Backup"
 local modulename="Backup"
-fn_check_root
-fn_check_systemdir
+check_root.sh
+check_systemdir.sh
 cd "${executabledir}"
 cd "${executabledir}"
 if [ "${executable}" ==  "./hlds_run" ]; then
 if [ "${executable}" ==  "./hlds_run" ]; then
 	executable=hlds_linux
 	executable=hlds_linux

+ 4 - 4
functions/fn_email → functions/email.sh

@@ -1,15 +1,15 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_email function
+# LGSM email.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Sends email notification if monitor picks up a failure.
 # Description: Sends email notification if monitor picks up a failure.
 
 
 local modulename="Email"
 local modulename="Email"
 fn_printdots "Sending notification to ${email}"
 fn_printdots "Sending notification to ${email}"
 echo -en "\n"
 echo -en "\n"
-fn_details_distro
+info_distro.sh
 {
 {
 	echo -e "========================================\n${servicename} details\n========================================\n"
 	echo -e "========================================\n${servicename} details\n========================================\n"
 	echo -e "Service: ${servicename}"
 	echo -e "Service: ${servicename}"
@@ -27,7 +27,7 @@ fn_details_distro
 	echo -e "Avg Load${load}\n"
 	echo -e "Avg Load${load}\n"
 	echo -e "========================================\nLogs\n========================================\n"
 	echo -e "========================================\nLogs\n========================================\n"
 	echo -e "Script log\n===================\n"
 	echo -e "Script log\n===================\n"
-	fn_details
+	command_details.sh
 }|sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"|tee "${scriptlogdir}/${servicename}-email.log"
 }|sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"|tee "${scriptlogdir}/${servicename}-email.log"
 tail -25 "${scriptlog}" >> "${emaillog}"
 tail -25 "${scriptlog}" >> "${emaillog}"
 if [ ! -z "${consolelog}" ]; then
 if [ ! -z "${consolelog}" ]; then

+ 6 - 6
functions/fn_email_test → functions/email_test.sh

@@ -1,21 +1,21 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_email_test function
+# LGSM email_test.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Sends a test email notification.
 # Description: Sends a test email notification.
 
 
 local modulename="Email"
 local modulename="Email"
-fn_check_root
-fn_check_systemdir
-fn_details_config
+check_root.sh
+check_systemdir.sh
+info_config.sh
 if [ "${emailnotification}" = "on" ]; then
 if [ "${emailnotification}" = "on" ]; then
 	fn_scriptlog "Sending test notification"
 	fn_scriptlog "Sending test notification"
 	subject="${servicename} Email Test Notification - Testing ${servername}"
 	subject="${servicename} Email Test Notification - Testing ${servername}"
 	failurereason="Testing ${servicename} email notification"
 	failurereason="Testing ${servicename} email notification"
 	actiontaken="Sent test email...hello is this thing on?"
 	actiontaken="Sent test email...hello is this thing on?"
-	fn_email
+	email.sh
 else
 else
 	fn_printfailnl "Notifications not enabled"
 	fn_printfailnl "Notifications not enabled"
 	fn_scriptlog "Notifications not enabled"
 	fn_scriptlog "Notifications not enabled"

+ 2 - 2
functions/fn_arma3fix → functions/fix_arma3.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_arma3fix function
+# LGSM fix_arma3.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Fixes line 63: 20150 Segmentation fault (core dumped) #488
 # Fixes line 63: 20150 Segmentation fault (core dumped) #488
 
 

+ 2 - 2
functions/fn_csgofix → functions/fix_csgo.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_csgofix function
+# LGSM fix_csgo.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Resolves various issues with csgo.
 # Description: Resolves various issues with csgo.
 
 

+ 2 - 2
functions/fn_install_glibcfix → functions/fix_glibc.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_glibcfix function
+# LGSM fix_glibc.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 fn_glibcfixmsg(){
 fn_glibcfixmsg(){
 echo ""
 echo ""

+ 2 - 2
functions/fn_insfix → functions/fix_ins.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_insfix function
+# LGSM fix_ins.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Resolves various issues with Insurgency.
 # Description: Resolves various issues with Insurgency.
 
 

+ 7 - 315
functions/fn_functions

@@ -1,328 +1,20 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_functions function
+# LGSM core_functions.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="251215"
+lgsm_version="271215"
 
 
-# Description: Defines all functions to allow download and execution of functions using fn_runfunction.
-# This function is called first before any other function. Without this file other functions would not load.
+# Description: Redirect to new core_functions.sh
 
 
-fn_arma3fix(){
+core_functions.sh(){
+# Functions are defined in core_functions.sh.
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_backup(){
+core_getopt.sh(){
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_runfunction
 fn_runfunction
 }
 }
 
 
-fn_check_ip(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_check_logs(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_check_root(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_check_steamcmd(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_check_steamuser(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_check_systemdir(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_check_tmux(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_check_ts3status(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_console(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_compress_unreal2maps(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_compress_ut99maps(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_csgofix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_debug(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_details(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_details_config(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_details_distro(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_details_glibc(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_debug_dev(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_deps_detect(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_email(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_email_test(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_getopt(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_insfix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_logs(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_messages(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_monitor(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_monitor_query(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_restart(){
-local modulename="Restarting"
-fn_details_config
-fn_scriptlog "${servername}"
-fn_stop
-fn_start
-}
-
-fn_start(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_stop(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_update_check(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_update_functions(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_update_dl(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_update_functions(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_validate(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-#
-## Installer functions
-#
-
-fn_autoinstall(){
-autoinstall=1
-fn_install
-}
-
-fn_install(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_complete(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_config(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_glibcfix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_gsquery(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_gslt(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_header(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_kffix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_logs(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_retry(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_rofix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_serverdir(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_serverfiles(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_steamcmd(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_steamfix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ts3(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ts3db(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ut2k4(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ut2k4filesdl(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ut2k4fix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ut2k4key(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ut99(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ut99filesdl(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-fn_install_ut99fix(){
-functionfile="${FUNCNAME}"
-fn_runfunction
-}
-
-# Calls on-screen messages
-fn_messages
+core_functions.sh

+ 8 - 420
functions/fn_getopt

@@ -1,427 +1,15 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_getopt function
+# LGSM core_getopt.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
-# Description: getopt arguments.
+# Description: Redirect to new core_getopt.sh
 
 
-fn_getopt_generic(){
-case "$getopt" in
-	st|start)
-		fn_start;;
-	sp|stop)
-		fn_stop;;
-	r|restart)
-		fn_restart;;
-	u|update)
-		fn_update_check;;
-	fu|force-update|update-restart)
-		forceupdate=1;
-		fn_update_check;;
-	uf|update-functions)
-		fn_update_functions;;
-	v|validate)
-		fn_validate;;
-	m|monitor)
-		fn_monitor;;
-	et|email-test)
-		fn_email_test;;
-	d|details)
-		fn_details;;
-	b|backup)
-		fn_backup;;
-	c|console)
-		fn_console;;
-	d|debug)
-		fn_debug;;
-	dev|dev-debug)
-		fn_debug_dev;;
-	i|install)
-		fn_install;;
-	ai|auto-install)
-		fn_autoinstall;;
-	dd|depsdetect)
-		fn_deps_detect;;
-	*)
-	echo "Usage: $0 [option]"
-	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "http://gameservermanagers.com/${selfname}"
-	echo -e ""
-	echo -e "\e[93mCommands\e[0m"
-	{
-		echo -e "\e[34mstart\t\e[0mStart the server."
-		echo -e "\e[34mstop\t\e[0mStop the server."
-		echo -e "\e[34mrestart\t\e[0mRestart the server."
-		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD."
-		echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD."
-		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
-		echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD."
-		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
-		echo -e "\e[34memail-test\t\e[0mSends test monitor email."		
-		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
-		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
-		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
-		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
-		echo -e "\e[34minstall\t\e[0mInstall the server."
-		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
-	} | column -s $'\t' -t 
-	esac
-exit
+core_getopt.sh(){
+# Functions are defined in core_functions.sh.
+functionfile="${FUNCNAME}"
+fn_runfunction
 }
 }
 
 
-fn_getopt_teamspeak3(){
-case "$getopt" in
-	st|start)
-		fn_start;;
-	sp|stop)
-		fn_stop;;
-	r|restart)
-		fn_restart;;
-	u|update)
-		fn_update_check;;
-	uf|update-functions)
-		fn_update_functions;;
-	m|monitor)
-		fn_monitor;;
-	et|email-test)
-		fn_email_test;;
-	d|details)
-		fn_details;;
-	b|backup)
-		fn_backup;;
-	dev|dev-debug)
-		fn_debug_dev;;		
-	i|install)
-		fn_install;;
-	ai|auto-install)
-		fn_autoinstall;;
-	dd|depsdetect)
-		fn_deps_detect;;
-	*)
-	echo "Usage: $0 [option]"
-	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "http://gameservermanagers.com/${selfname}"
-	echo -e ""
-	echo -e "\e[93mCommands\e[0m"
-	{
-		echo -e "\e[34mstart\t\e[0mStart the server."
-		echo -e "\e[34mstop\t\e[0mStop the server."
-		echo -e "\e[34mrestart\t\e[0mRestart the server."
-		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from teamspeak.com."
-		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
-		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
-		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
-		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
-		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
-		echo -e "\e[34minstall\t\e[0mInstall the server."
-		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
-	} | column -s $'\t' -t 
-	esac
-exit
-}
-
-fn_getopt_mumble(){
-case "$getopt" in
-	st|start)
-		fn_start;;
-	sp|stop)
-		fn_stop;;
-	r|restart)
-		fn_restart;;
-	uf|update-functions)
-		fn_update_functions;;
-	m|monitor)
-		fn_monitor;;
-	et|email-test)
-		fn_email_test;;
-	b|backup)
-		fn_backup;;
-	dev|dev-debug)
-		fn_debug_dev;;		
-	console)
-		fn_console;;
-	d|debug)
-		fn_debug;;
-	dd|depsdetect)
-		fn_deps_detect;;
-	*)
-	echo "Usage: $0 [option]"
-	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "http://gameservermanagers.com/${selfname}"
-	echo -e ""
-	echo -e "\e[93mCommands\e[0m"
-	{
-		echo -e "\e[34mstart\t\e[0mStart the server."
-		echo -e "\e[34mstop\t\e[0mStop the server."
-		echo -e "\e[34mrestart\t\e[0mRestart the server."
-		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
-		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
-		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
-		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
-		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."		
-		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
-	} | column -s $'\t' -t 
-	esac
-exit
-}
-
-fn_getopt_gmodserver(){
-case "$getopt" in
-	st|start)
-		fn_start;;
-	sp|stop)
-		fn_stop;;
-	r|restart)
-		fn_restart;;
-	u|update)
-		fn_update_check;;
-	fu|force-update|update-restart)
-		forceupdate=1;
-		fn_update_check;;
-	uf|update-functions)
-		fn_update_functions;;
-	v|validate)
-		fn_validate;;
-	m|monitor)
-		fn_monitor;;
-	et|email-test)
-		fn_email_test;;
-	d|details)
-		fn_details;;
-	b|backup)
-		fn_backup;;
-	c|console)
-		fn_console;;
-	d|debug)
-		fn_debug;;
-	dev|dev-debug)
-		fn_debug_dev;;		
-	i|install)
-		fn_install;;
-	ai|auto-install)
-		fn_autoinstall;;
-	dd|depsdetect)
-		fn_deps_detect;;
-	gc|gmod-content)
-		fn_content_gmod;;
-	*)
-	echo "Usage: $0 [option]"
-	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "http://gameservermanagers.com/${selfname}"
-	echo -e ""
-	echo -e "\e[93mCommands\e[0m"
-	{
-		echo -e "\e[34mstart\t\e[0mStart the server."
-		echo -e "\e[34mstop\t\e[0mStop the server."
-		echo -e "\e[34mrestart\t\e[0mRestart the server."
-		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD."
-		echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD."
-		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
-		echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD."
-		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
-		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
-		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
-		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
-		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
-		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
-		echo -e "\e[34minstall\t\e[0mInstall the server."
-		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
-		echo -e "\e[34mgmod-content\t\e[0mDownload gmod add-on content."
-	} | column -s $'\t' -t 
-	esac
-exit
-}
-
-fn_getopt_unreal(){
-case "$getopt" in
-	st|start)
-		fn_start;;
-	sp|stop)
-		fn_stop;;
-	r|restart)
-		fn_restart;;
-	uf|update-functions)
-		fn_update_functions;;
-	m|monitor)
-		fn_monitor;;
-	et|email-test)
-		fn_email_test;;
-	d|details)
-		fn_details;;
-	b|backup)
-		fn_backup;;
-	c|console)
-		fn_console;;
-	d|debug)
-		fn_debug;;
-	dev|dev-debug)
-		fn_debug_dev;;		
-	i|install)
-		fn_install;;
-	mc|map-compressor)
-		fn_compress_ut99maps;;
-	dd|depsdetect)
-		fn_deps_detect;;		
-	*)
-	echo "Usage: $0 [option]"
-	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "http://gameservermanagers.com/${selfname}"
-	echo -e ""
-	echo -e "\e[93mCommands\e[0m"
-	{
-		echo -e "\e[34mstart\t\e[0mStart the server."
-		echo -e "\e[34mstop\t\e[0mStop the server."
-		echo -e "\e[34mrestart\t\e[0mRestart the server."
-		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
-		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
-		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
-		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
-		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
-		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
-		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
-		echo -e "\e[34minstall\t\e[0mInstall the server."
-		echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps."
-	} | column -s $'\t' -t 
-	esac
-exit
-}
-
-
-fn_getopt_unreal2(){
-case "$getopt" in
-	st|start)
-		fn_start;;
-	sp|stop)
-		fn_stop;;
-	r|restart)
-		fn_restart;;
-	u|update)
-		fn_update_check;;
-	fu|force-update|update-restart)
-		forceupdate=1;
-		fn_update_check;;
-	uf|update-functions)
-		fn_update_functions;;
-	v|validate)
-		fn_validate;;
-	m|monitor)
-		fn_monitor;;
-	et|email-test)
-		fn_email_test;;
-	d|details)
-		fn_details;;
-	b|backup)
-		fn_backup;;
-	c|console)
-		fn_console;;
-	d|debug)
-		fn_debug;;
-	dev|dev-debug)
-		fn_debug_dev;;		
-	i|install)
-		fn_install;;
-	ai|auto-install)
-		fn_autoinstall;;
-	dd|depsdetect)
-		fn_deps_detect;;
-	mc|map-compressor)
-		fn_compress_unreal2maps;;
-	*)
-	echo "Usage: $0 [option]"
-	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "http://gameservermanagers.com/${selfname}"
-	echo -e ""
-	echo -e "\e[93mCommands\e[0m"
-	{
-		echo -e "\e[34mstart\t\e[0mStart the server."
-		echo -e "\e[34mstop\t\e[0mStop the server."
-		echo -e "\e[34mrestart\t\e[0mRestart the server."
-		echo -e "\e[34mupdate\t\e[0mChecks and applies updates from SteamCMD."
-		echo -e "\e[34mforce-update\t\e[0mBypasses the check and applies updates from SteamCMD."
-		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
-		echo -e "\e[34mvalidate\t\e[0mValidate server files with SteamCMD."
-		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
-		echo -e "\e[34memail-test\t\e[0mSends test monitor email."		
-		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
-		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
-		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
-		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
-		echo -e "\e[34minstall\t\e[0mInstall the server."
-		echo -e "\e[34mauto-install\t\e[0mInstall the server, without prompts."
-		echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps."		
-	} | column -s $'\t' -t 
-	esac
-exit
-}
-
-
-fn_getopt_ut2k4(){
-case "$getopt" in
-	st|start)
-		fn_start;;
-	sp|stop)
-		fn_stop;;
-	r|restart)
-		fn_restart;;
-	uf|update-functions)
-		fn_update_functions;;
-	m|monitor)
-		fn_monitor;;
-	et|email-test)
-		fn_email_test;;
-	d|details)
-		fn_details;;
-	b|backup)
-		fn_backup;;
-	c|console)
-		fn_console;;
-	d|debug)
-		fn_debug;;
-	dev|dev-debug)
-		fn_debug_dev;;		
-	i|install)
-		fn_install;;
-	mc|map-compressor)
-		fn_compress_ut99maps;;
-	dd|depsdetect)
-		fn_deps_detect;;		
-	*)
-	echo "Usage: $0 [option]"
-	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "http://gameservermanagers.com/${selfname}"
-	echo -e ""
-	echo -e "\e[93mCommands\e[0m"
-	{
-		echo -e "\e[34mstart\t\e[0mStart the server."
-		echo -e "\e[34mstop\t\e[0mStop the server."
-		echo -e "\e[34mrestart\t\e[0mRestart the server."
-		echo -e "\e[34mupdate-functions\t\e[0mRemoves all functions so latest can be downloaded."
-		echo -e "\e[34mmonitor\t\e[0mChecks that the server is running."
-		echo -e "\e[34memail-test\t\e[0mSends test monitor email."
-		echo -e "\e[34mdetails\t\e[0mDisplays useful infomation about the server."
-		echo -e "\e[34mbackup\t\e[0mCreate archive of the server."
-		echo -e "\e[34mconsole\t\e[0mConsole allows you to access the live view of a server."
-		echo -e "\e[34mdebug\t\e[0mSee the output of the server directly to your terminal."
-		echo -e "\e[34minstall\t\e[0mInstall the server."
-		echo -e "\e[34mmap-compressor\t\e[0mCompresses all ${gamename} server maps."
-	} | column -s $'\t' -t 
-	esac
-exit
-}
-
-if [ "${gamename}" == "Mumble" ]; then
-	fn_getopt_mumble
-elif [ "${gamename}" == "Teamspeak 3" ]; then
-	fn_getopt_teamspeak3
-elif [ "${engine}" == "unreal2" ]; then
-	if [ "${gamename}" == "Unreal Tournament 2004" ]; then
-		fn_getopt_ut2k4
-	else
-		fn_getopt_unreal2
-	fi
-elif [ "${engine}" == "unreal" ]; then
-	fn_getopt_unreal
-else
-	fn_getopt_generic
-fi
+core_getopt.sh

+ 8 - 8
functions/fn_details_config → functions/info_config.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_details_config function
+# LGSM info_config.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: Gets specific details from config files.
 # Description: Gets specific details from config files.
 
 
@@ -210,24 +210,24 @@ elif [ "${engine}" == "realvirtuality" ]; then
 	fi
 	fi
 
 
         # port
         # port
-        if [ "${srvport}" != "" ]; then
-                        port=${srvport}
+        if [ "${port}" != "" ]; then
+                        port=${port}
         fi
         fi
         if [ ! -n "${port}" ]; then
         if [ ! -n "${port}" ]; then
                 port="0"
                 port="0"
         fi
         fi
 
 
         # query port
         # query port
-        if [ "${srvport}" != "" ]; then
-                queryport=$((srvport+1))
+        if [ "${port}" != "" ]; then
+                queryport=$((port+1))
         fi
         fi
         if [ ! -n "${queryport}" ]; then
         if [ ! -n "${queryport}" ]; then
                 queryport="0"
                 queryport="0"
         fi
         fi
 
 
         # master port
         # master port
-        if [ "${srvport}" != "" ]; then
-                masterport=$((srvport+2))
+        if [ "${port}" != "" ]; then
+                masterport=$((port+2))
         fi
         fi
         if [ ! -n "${masterport}" ]; then
         if [ ! -n "${masterport}" ]; then
                 masterport="0"
                 masterport="0"

+ 3 - 3
functions/fn_details_distro → functions/info_distro.sh

@@ -1,11 +1,11 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_details_distro function
+# LGSM info_distro.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="211215"
+lgsm_version="271215"
 
 
 # Description: Variables providing useful info on the Operating System such as disk and performace info.
 # Description: Variables providing useful info on the Operating System such as disk and performace info.
-# Used for fn_details, fn_debug and fn_email.
+# Used for command_details.sh, command_debug.sh and email.sh.
 
 
 ## Distro infomation
 ## Distro infomation
 # Returns architecture, kernel and distro/os.
 # Returns architecture, kernel and distro/os.

+ 2 - 2
functions/fn_details_glibc → functions/info_glibc.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_details_glibc function
+# LGSM info_glibc.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Description: stores details on servers Glibc requirements.
 # Description: stores details on servers Glibc requirements.
 
 

+ 2 - 2
functions/fn_check_ts3status → functions/info_ts3status.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_check_ts3status function
+# LGSM info_ts3status.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 # Checks the status of Teamspeak 3.
 # Checks the status of Teamspeak 3.
 
 

+ 2 - 2
functions/fn_install_complete → functions/install_complete.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_complete function
+# LGSM install_complete.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 if [ "${gamename}" == "Dont Starve Together" ]; then
 if [ "${gamename}" == "Dont Starve Together" ]; then
   echo ""
   echo ""

+ 2 - 2
functions/fn_install_config → functions/install_config.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_config function
+# LGSM install_config.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="251215"
+lgsm_version="271215"
 
 
 fn_defaultconfig(){
 fn_defaultconfig(){
 	echo "creating ${servercfg} config file."
 	echo "creating ${servercfg} config file."

+ 4 - 4
functions/fn_install_ut2k4filesdl → functions/install_dl_ut2k4.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_ut2k4filesdl function
+# LGSM install_dl_ut2k4.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 echo "Downloading Server Files"
 echo "Downloading Server Files"
 echo "================================="
 echo "================================="
@@ -21,7 +21,7 @@ if [ "${md5check}" != "d3f28c5245c4c02802d48e4f0ffd3e34" ]; then
 	echo "MD5 checksum: FAILED!"
 	echo "MD5 checksum: FAILED!"
 	read -p "Retry download? [y/N]" yn
 	read -p "Retry download? [y/N]" yn
 	case $yn in
 	case $yn in
-	[Yy]* ) rm -fv dedicatedserver3339-bonuspack.zip; fn_install_ut2k4filesdl;;
+	[Yy]* ) rm -fv dedicatedserver3339-bonuspack.zip; install_dl_ut2k4.sh;;
 	[Nn]* ) echo Exiting; exit;;
 	[Nn]* ) echo Exiting; exit;;
 	* ) echo "Please answer yes or no.";;
 	* ) echo "Please answer yes or no.";;
 	esac
 	esac
@@ -42,7 +42,7 @@ if [ "${md5check}" != "0fa447e05fe5a38e0e32adf171be405e" ]; then
 	echo "MD5 checksum: FAILED!"
 	echo "MD5 checksum: FAILED!"
 	read -p "Retry download? [y/N]" yn
 	read -p "Retry download? [y/N]" yn
 	case $yn in
 	case $yn in
-	[Yy]* ) rm -fv ut2004-lnxpatch3369-2.tar.bz2; fn_install_ut2k4filesdl;;
+	[Yy]* ) rm -fv ut2004-lnxpatch3369-2.tar.bz2; install_dl_ut2k4.sh;;
 	[Nn]* ) echo Exiting; exit;;
 	[Nn]* ) echo Exiting; exit;;
 	* ) echo "Please answer yes or no.";;
 	* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
functions/fn_install_ut99filesdl → functions/install_dl_ut99.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_ut99filesdl function
+# LGSM install_dl_ut99.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 echo "Downloading Server Files"
 echo "Downloading Server Files"
 echo "================================="
 echo "================================="

+ 6 - 6
functions/fn_install_kffix → functions/install_fix_kf.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_kffix function
+# LGSM install_fix_kf.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 echo "Applying ${gamename} Server Fixes"
 echo "Applying ${gamename} Server Fixes"
 echo "================================="
 echo "================================="
@@ -19,9 +19,9 @@ echo "applying server name fix."
 sleep 1
 sleep 1
 echo "forcing server restart..."
 echo "forcing server restart..."
 sleep 1
 sleep 1
-fn_start
+command_start.sh
 sleep 5
 sleep 5
-fn_stop
-fn_start
+command_stop.sh
+command_start.sh
 sleep 5
 sleep 5
-fn_stop
+command_stop.sh

+ 6 - 6
functions/fn_install_rofix → functions/install_fix_ro.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_rofix function
+# LGSM install_fix_ro.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 echo "Applying ${gamename} Server Fixes"
 echo "Applying ${gamename} Server Fixes"
 echo "================================="
 echo "================================="
@@ -19,9 +19,9 @@ echo "applying server name fix."
 sleep 1
 sleep 1
 echo "forcing server restart..."
 echo "forcing server restart..."
 sleep 1
 sleep 1
-fn_start
+command_start.sh
 sleep 5
 sleep 5
-fn_stop
-fn_start
+command_stop.sh
+command_start.sh
 sleep 5
 sleep 5
-fn_stop
+command_stop.sh

+ 2 - 2
functions/fn_install_steamfix → functions/install_fix_steam.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_steamfix function
+# LGSM install_fix_steam.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 fn_steamclientfix(){
 fn_steamclientfix(){
 echo ""
 echo ""

+ 6 - 6
functions/fn_install_ut2k4fix → functions/install_fix_ut2k4.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_ut2k4fix function
+# LGSM install_fix_ut2k4.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 echo "Applying ${gamename} Server Fixes"
 echo "Applying ${gamename} Server Fixes"
 echo "================================="
 echo "================================="
@@ -24,9 +24,9 @@ echo -en "forcing server restart...\r"
 sleep 0.5
 sleep 0.5
 echo -en "\n"
 echo -en "\n"
 sleep 0.5
 sleep 0.5
-fn_start
+command_start.sh
 sleep 5
 sleep 5
-fn_stop
-fn_start
+command_stop.sh
+command_start.sh
 sleep 5
 sleep 5
-fn_stop
+command_stop.sh

+ 2 - 2
functions/fn_install_ut99fix → functions/install_fix_ut99.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_ut99fix function
+# LGSM install_fix_ut99.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 echo "Applying ${gamename} Server Fixes"
 echo "Applying ${gamename} Server Fixes"
 echo "================================="
 echo "================================="

+ 2 - 2
functions/fn_install_gslt → functions/install_gslt.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_gslt function
+# LGSM install_gslt.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="091215"
+lgsm_version="271215"
 
 
 # Description: Configures GSLT.
 # Description: Configures GSLT.
 
 

+ 2 - 2
functions/fn_install_gsquery → functions/install_gsquery.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_gsquery function
+# LGSM install_gsquery.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="221215"
+lgsm_version="271215"
 
 
 fn_dlgsquery(){
 fn_dlgsquery(){
 cd "${rootdir}"
 cd "${rootdir}"

+ 2 - 2
functions/fn_install_header → functions/install_header.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_header function
+# LGSM install_header.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 clear
 clear
 echo "================================="
 echo "================================="

+ 2 - 2
functions/fn_install_logs → functions/install_logs.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_logs function
+# LGSM install_logs.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 if [ "${checklogs}" != "1" ]; then
 if [ "${checklogs}" != "1" ]; then
 	echo ""
 	echo ""

+ 3 - 3
functions/fn_install_retry → functions/install_retry.sh

@@ -1,13 +1,13 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_retry function
+# LGSM install_retry.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 while true; do
 while true; do
 	read -e -i "y" -p "Retry install? [Y/n]" yn
 	read -e -i "y" -p "Retry install? [Y/n]" yn
 	case $yn in
 	case $yn in
-	[Yy]* ) fn_install; exit;;
+	[Yy]* ) command_install.sh; exit;;
 	[Nn]* ) echo Exiting; exit;;
 	[Nn]* ) echo Exiting; exit;;
 	* ) echo "Please answer yes or no.";;
 	* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
functions/fn_install_serverdir → functions/install_serverdir.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_serverdir function
+# LGSM install_serverdir.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 echo ""
 echo ""
 echo "Server Directory"
 echo "Server Directory"

+ 12 - 12
functions/fn_install_serverfiles → functions/install_serverfiles.sh

@@ -1,13 +1,13 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_serverfiles function
+# LGSM finstall_serverfiles.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="061115"
+lgsm_version="271215"
 
 
 fn_steaminstallcommand(){
 fn_steaminstallcommand(){
-fn_check_steamuser
+check_steamuser.sh
 counter="0"
 counter="0"
-while [ "${counter}" == "0" ]||[ "$(grep -wc 0x402 .fn_install_serverfiles.tmp)" -ge "1" ]||[ "$(grep -wc 0x406 .fn_install_serverfiles.tmp)" -ge "1" ]||[ "$(grep -wc 0x6 .fn_install_serverfiles.tmp)" -ge "1" ]||[ "$(grep -wc 0x106 .fn_install_serverfiles.tmp)" -ge "1" ]; do
+while [ "${counter}" == "0" ]||[ "$(grep -wc 0x402 .finstall_serverfiles.sh.tmp)" -ge "1" ]||[ "$(grep -wc 0x406 .finstall_serverfiles.sh.tmp)" -ge "1" ]||[ "$(grep -wc 0x6 .finstall_serverfiles.sh.tmp)" -ge "1" ]||[ "$(grep -wc 0x106 .finstall_serverfiles.sh.tmp)" -ge "1" ]; do
 	counter=$((counter+1))
 	counter=$((counter+1))
 	cd "${rootdir}/steamcmd"
 	cd "${rootdir}/steamcmd"
 	if [ "${counter}" -le "10" ]; then
 	if [ "${counter}" -le "10" ]; then
@@ -27,7 +27,7 @@ while [ "${counter}" == "0" ]||[ "$(grep -wc 0x402 .fn_install_serverfiles.tmp)"
 		fi
 		fi
 		if [ "${counter}" -ge "9" ]; then
 		if [ "${counter}" -ge "9" ]; then
 			rm -rf "${rootdir}/steamcmd"
 			rm -rf "${rootdir}/steamcmd"
-			fn_check_steamcmd
+			check_steamcmd.sh
 		fi
 		fi
 
 
 		# Detects if unbuffer command is available.
 		# Detects if unbuffer command is available.
@@ -37,15 +37,15 @@ while [ "${counter}" == "0" ]||[ "$(grep -wc 0x402 .fn_install_serverfiles.tmp)"
 
 
 		if [ "${counter}" -le "4" ]; then
 		if [ "${counter}" -le "4" ]; then
 			if [ "${engine}" == "goldsource" ]; then
 			if [ "${engine}" == "goldsource" ]; then
-				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_set_config 90 mod ${appidmod} +app_update "${appid}" +quit |tee .fn_install_serverfiles.tmp
+				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_set_config 90 mod ${appidmod} +app_update "${appid}" +quit |tee .finstall_serverfiles.sh.tmp
 			else
 			else
-				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" +quit |tee .fn_install_serverfiles.tmp
+				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" +quit |tee .finstall_serverfiles.sh.tmp
 			fi
 			fi
 		elif [ "${counter}" -ge "5" ]; then
 		elif [ "${counter}" -ge "5" ]; then
 			if [ "${engine}" == "goldsource" ]; then
 			if [ "${engine}" == "goldsource" ]; then
-				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_set_config 90 mod ${appidmod} +app_update "${appid}" -validate +quit |tee .fn_install_serverfiles.tmp
+				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_set_config 90 mod ${appidmod} +app_update "${appid}" -validate +quit |tee .finstall_serverfiles.sh.tmp
 			else
 			else
-				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" -validate +quit |tee .fn_install_serverfiles.tmp
+				${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" -validate +quit |tee .finstall_serverfiles.sh.tmp
 			fi
 			fi
 		fi
 		fi
 	elif [ "${counter}" -ge "11" ]; then
 	elif [ "${counter}" -ge "11" ]; then
@@ -61,10 +61,10 @@ if [ "${engine}" == "goldsource" ]; then
 	counter="0"
 	counter="0"
 	while [ "${counter}" -le "4" ]; do
 	while [ "${counter}" -le "4" ]; do
 		counter=$((counter+1))
 		counter=$((counter+1))
-		${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_set_config 90 mod ${appidmod} +app_update "${appid}" -validate +quit |tee .fn_install_serverfiles.tmp
+		${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_set_config 90 mod ${appidmod} +app_update "${appid}" -validate +quit |tee .finstall_serverfiles.sh.tmp
 	done
 	done
 fi
 fi
-rm -f .fn_install_serverfiles.tmp
+rm -f .finstall_serverfiles.sh.tmp
 }
 }
 
 
 echo ""
 echo ""
@@ -80,7 +80,7 @@ if [ -z "${autoinstall}" ]; then
 	read -e -i "y" -p "Was the install successful? [Y/n]" yn
 	read -e -i "y" -p "Was the install successful? [Y/n]" yn
 		case $yn in
 		case $yn in
 			[Yy]* ) break;;
 			[Yy]* ) break;;
-			[Nn]* ) fn_install_retry;;
+			[Nn]* ) install_retry.sh;;
 			* ) echo "Please answer yes or no.";;
 			* ) echo "Please answer yes or no.";;
 		esac
 		esac
 	done
 	done

+ 2 - 2
functions/fn_install_steamcmd → functions/install_steamcmd.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_steamcmd function
+# LGSM install_steamcmd.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="201215"
+lgsm_version="271215"
 
 
 # Description: Downloads SteamCMD on install.
 # Description: Downloads SteamCMD on install.
 
 

+ 3 - 3
functions/fn_install_ts3 → functions/install_ts3.sh

@@ -1,10 +1,10 @@
 #!/bin/bash
 #!/bin/bash
-# LGSM fn_install_ts3 function
+# LGSM install_ts3.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
 # Website: http://gameservermanagers.com
-lgsm_version="251215"
+lgsm_version="271215"
 
 
-fn_details_distro
+info_distro.sh
 # Gets the teamspeak server architecture
 # Gets the teamspeak server architecture
 if [ "${arch}" == "x86_64" ]; then
 if [ "${arch}" == "x86_64" ]; then
 	ts3arch="amd64"
 	ts3arch="amd64"

Some files were not shown because too many files changed in this diff