#!/bin/sh
#
#  This script disables checksumming within the domU
#

prefix=$1

#
#  Source the common functions
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
    . /usr/lib/xen-tools/common.sh
else
    . ./hooks/common.sh
fi

logMessage Script $0 starting

# To avoid UDP checksum problems.
installDebianPackage ${prefix} ethtool

sed -i'' -e 's/\(\s*\)# post-up/\1post-up/' ${prefix}/etc/network/interfaces

#
# Log our finish
#
logMessage Script $0 finished
