From 670c164cf55e81f06371ba9342abe08148f11dd2 Mon Sep 17 00:00:00 2001 From: h3o66 Date: Wed, 22 Apr 2015 22:02:37 +0200 Subject: [PATCH] Changes for Garrys Mod --- functions/fn_getopt | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/functions/fn_getopt b/functions/fn_getopt index ab2135a0c..657595468 100644 --- a/functions/fn_getopt +++ b/functions/fn_getopt @@ -68,6 +68,44 @@ esac exit } +fn_getopt_gmodserver(){ +case "$getopt" in + start) + fn_start;; + stop) + fn_stop;; + restart) + fn_restart;; + update) + fn_update_check;; + validate) + fn_validate;; + monitor) + fn_monitor;; + email-test) + fn_email_test;; + details) + fn_details;; + backup) + fn_backup;; + console) + fn_console;; + debug) + fn_debug;; + install) + fn_install;; + auto-install) + fn_autoinstall;; + content) + fn_content_gmod;; + *) + echo "Usage: $0 {start|stop|restart|update|validate|monitor|email-test|details|backup|console|debug|install|auto-install|content}" + exit 1;; +esac +exit +} + + fn_getopt_unreal(){ case "$getopt" in start) @@ -178,6 +216,8 @@ elif [ "${engine}" == "unreal2" ]; then fi elif [ "${engine}" == "unreal" ]; then fn_getopt_unreal +elif [ "$gamename" == "Garry's Mod" ]; then + fn_getopt_gmodserver else fn_getopt_generic -fi \ No newline at end of file +fi