Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

grml-vnet: deactivate bridge before removing
authorMichael Gebetsroither <michael.geb@gmx.at>
Sat Oct 27 15:39:05 2007 +0000 (13 months ago)
changeset 524ce27c7b22d5
manifest4ce27c7b22d5
parent 51f562c0f47153
child 5380640776d761
grml-vnet: deactivate bridge before removing
debian/changelog
sbin/grml-vnet
--- a/debian/changelog Sat Oct 27 15:33:11 2007 +0000
+++ b/debian/changelog Sat Oct 27 15:39:05 2007 +0000
@@ -8,8 +8,9 @@ grml-network (0.1.13) unstable; urgency=
* 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
--- a/sbin/grml-vnet Sat Oct 27 15:33:11 2007 +0000
+++ b/sbin/grml-vnet Sat Oct 27 15:39:05 2007 +0000
@@ -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"