X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-vnet;h=97e4901daa8bda137c78900911477746bb6e436f;hb=392eec17fbad9a734a2930823d007c7ea13c56a5;hp=109cc6ff9180a273e282f677b92ebbf5a46c30d8;hpb=8fa73cd0defbd9b9976ed45f6067491cb805aaea;p=grml-network.git diff --git a/sbin/grml-vnet b/sbin/grml-vnet index 109cc6f..97e4901 100755 --- a/sbin/grml-vnet +++ b/sbin/grml-vnet @@ -1,6 +1,6 @@ #!/bin/bash -# Filename: grml-addtun -# Purpose: Program to create tun/tap devices and add them to a bridge +# Filename: grml-vnet +# Purpose: program to create tun/tap devices and add them to a bridge # Authors: Michael Gebetsroither # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. @@ -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"