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