2011-05-31 19:35:29 +02:00
|
|
|
Index: xen-4.1.1-testing/tools/hotplug/Linux/network-bridge
|
2008-05-24 00:00:43 +02:00
|
|
|
===================================================================
|
2011-05-31 19:35:29 +02:00
|
|
|
--- xen-4.1.1-testing.orig/tools/hotplug/Linux/network-bridge
|
|
|
|
+++ xen-4.1.1-testing/tools/hotplug/Linux/network-bridge
|
2011-03-21 17:47:37 +01:00
|
|
|
@@ -278,19 +278,19 @@ op_stop () {
|
2008-05-24 00:00:43 +02:00
|
|
|
transfer_addrs ${bridge} ${pdev}
|
|
|
|
if ! ifdown ${bridge}; then
|
|
|
|
get_ip_info ${bridge}
|
|
|
|
- fi
|
|
|
|
- ip link set ${pdev} down
|
|
|
|
- ip addr flush ${bridge}
|
|
|
|
+ ip link set ${pdev} down
|
|
|
|
+ ip addr flush ${bridge}
|
|
|
|
|
|
|
|
- brctl delif ${bridge} ${pdev}
|
|
|
|
- ip link set ${bridge} down
|
|
|
|
+ brctl delif ${bridge} ${pdev}
|
|
|
|
+ ip link set ${bridge} down
|
|
|
|
|
|
|
|
- ip link set ${bridge} name ${tdev}
|
|
|
|
+ ip link set ${bridge} name ${tdev}
|
|
|
|
+ brctl delbr ${tdev}
|
|
|
|
+ fi
|
|
|
|
+ ip link set ${pdev} down
|
|
|
|
ip link set ${pdev} name ${netdev}
|
|
|
|
do_ifup ${netdev}
|
2010-03-21 11:57:55 +01:00
|
|
|
|
2010-03-21 11:57:54 +01:00
|
|
|
- brctl delbr ${tdev}
|
2010-03-21 11:57:55 +01:00
|
|
|
-
|
|
|
|
release_lock "network-bridge"
|
2008-05-24 00:00:43 +02:00
|
|
|
}
|
|
|
|
|