X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/19c471aef9ce0ff70570fc6104a8315c5877b52c..refs/tags/0.0.13:/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums diff --git a/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums b/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums index b0233c8..dcd4129 100755 --- a/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums +++ b/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums @@ -19,7 +19,10 @@ logMessage Script $0 starting # To avoid UDP checksum problems. installDebianPackage ${prefix} ethtool -sed -i'' -e 's/exit 0/ethtool -K eth0 tx off\n\0/' ${prefix}/etc/rc.local +if ! sed -i -e 's/^\(\s*\)#\s*post-up\s\+ethtool/\1post-up ethtool -K eth0 tso off\n\0/' ${prefix}/etc/network/interfaces; then + echo "ERROR: unable to disable network segmentation offloading" + exit 1 +fi # # Log our finish