--- opennebula-3.2.1-origin/src/mad/sh/scripts_common.sh	2012-01-27 02:01:43.000000000 +0800
+++ scripts_common.sh	2012-07-26 17:09:02.779479351 +0800
@@ -1,5 +1,5 @@
 # -------------------------------------------------------------------------- #
-# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org)             #
+# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org)             #
 #                                                                            #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
 # not use this file except in compliance with the License. You may obtain    #
@@ -34,6 +34,7 @@
 SSH=ssh
 SUDO=sudo
 WGET=wget
+PREWGET=prefetch_wget.sh
 READLINK=readlink
 
 # Used for log messages

--- opennebula-3.2.1-origin/src/tm_mad/ssh/tm_clone.sh	2012-01-27 02:01:43.000000000 +0800
+++ tm_clone.sh	2012-07-26 13:51:39.042337569 +0800
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # -------------------------------------------------------------------------- #
-# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org)             #
+# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org)             #
 #                                                                            #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
 # not use this file except in compliance with the License. You may obtain    #
@@ -46,7 +46,7 @@
 case $SRC in
 http://*)
     log "Downloading $SRC"
-    exec_and_log "$SSH $DST_HOST $WGET -O $DST_PATH $SRC" \
+    exec_and_log "$SSH $DST_HOST $PREWGET -O $DST_PATH $SRC" \
         "Error downloading $SRC"
     ;;
 
