source: trunk/packages/invirt-autoinstaller/common/usr/lib/xen-tools/debian.d/98-fix-eth-checksums @ 1637

Last change on this file since 1637 was 1637, checked in by broder, 15 years ago

Add a hook to invirt-autoinstaller to turn off checksumming in the guest

  • Property svn:executable set to *
File size: 458 bytes
Line 
1#!/bin/sh
2#
3#  This script disables checksumming within the domU
4#
5
6prefix=$1
7
8#
9#  Source the common functions
10#
11if [ -e /usr/lib/xen-tools/common.sh ]; then
12    . /usr/lib/xen-tools/common.sh
13else
14    . ./hooks/common.sh
15fi
16
17logMessage Script $0 starting
18
19# To avoid UDP checksum problems.
20installDebianPackage ${prefix} ethtool
21
22sed -i'' -e 's/exit 0/ethtool -K eth0 tx off\n\0/' ${prefix}/etc/rc.local
23
24#
25# Log our finish
26#
27logMessage Script $0 finished
Note: See TracBrowser for help on using the repository browser.