projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'stable-2.6'
[ganeti-local]
/
tools
/
kvm-ifup.in
diff --git
a/tools/kvm-ifup.in
b/tools/kvm-ifup.in
index
370040c
..
2ff8ccb
100644
(file)
--- a/
tools/kvm-ifup.in
+++ b/
tools/kvm-ifup.in
@@
-1,4
+1,5
@@
#!/bin/sh
#!/bin/sh
+#
# Copyright (C) 2011 Google Inc.
#
# Copyright (C) 2011 Google Inc.
#
@@
-35,6
+36,8
@@
fi
ip link set $INTERFACE up
if [ "$MODE" = "bridged" ]; then
ip link set $INTERFACE up
if [ "$MODE" = "bridged" ]; then
+ ip link set $INTERFACE mtu $(</sys/class/net/${BRIDGE}/mtu)
+
# Connect the interface to the bridge
brctl addif $BRIDGE $INTERFACE
else
# Connect the interface to the bridge
brctl addif $BRIDGE $INTERFACE
else