Whoops - make the autoinstaller frob slightly more clever
[invirt/packages/invirt-autoinstaller.git] / common / usr / lib / xen-tools / debian.d / 98-fix-eth-checksums
index b0233c8..e4c2672 100755 (executable)
@@ -19,7 +19,7 @@ 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
+sed -i'' -e 's/^exit 0$/ethtool -K eth0 tx off\n\0/' ${prefix}/etc/rc.local
 
 #
 # Log our finish