From 4073ed0aaffad28c78bc68cbf6a08e39dfe778ba Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Sat, 27 Oct 2007 15:39:05 +0000 Subject: [PATCH] grml-vnet: deactivate bridge before removing --- debian/changelog | 3 ++- sbin/grml-vnet | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d6af09c..652f0a7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,8 +8,9 @@ grml-network (0.1.13) unstable; urgency=low * added manpage for grml-vnet * added uml-utilities to Suggests * grml-vnet: reworked interface activation code + * grml-vnet: deactivate bridge before removing - -- Michael Gebetsroither Sat, 27 Oct 2007 15:32:28 +0000 + -- Michael Gebetsroither Sat, 27 Oct 2007 15:38:37 +0000 grml-network (0.1.12) unstable; urgency=low diff --git a/sbin/grml-vnet b/sbin/grml-vnet index 109cc6f..ccf62e9 100755 --- a/sbin/grml-vnet +++ b/sbin/grml-vnet @@ -104,6 +104,7 @@ else if [[ $OPT_BRIDGE_ != '' && $OPT_AUTO_ == 'true' ]]; then tmp_="`brctl showmacs "$OPT_BRIDGE_" |wc -l`" if (( $tmp_ == 1 )); then + ip link set down dev "$OPT_BRIDGE_" brctl delbr "$OPT_BRIDGE_" else die "E: bridge $OPT_BRIDGE_ not empty, not removing" -- 2.1.4