|
@@ -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
|