grml-vnet: deactivate bridge before removing
authorMichael Gebetsroither <michael.geb@gmx.at>
Sat, 27 Oct 2007 15:39:05 +0000 (15:39 +0000)
committerMichael Gebetsroither <michael.geb@gmx.at>
Sat, 27 Oct 2007 15:39:05 +0000 (15:39 +0000)
debian/changelog
sbin/grml-vnet

index d6af09c..652f0a7 100644 (file)
@@ -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 <michael.geb@gmx.at>  Sat, 27 Oct 2007 15:32:28 +0000
+ -- Michael Gebetsroither <michael.geb@gmx.at>  Sat, 27 Oct 2007 15:38:37 +0000
 
 grml-network (0.1.12) unstable; urgency=low
 
index 109cc6f..ccf62e9 100755 (executable)
@@ -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"