cosmetic in usage message
[sliver-openvswitch.git] / planetlab / scripts / del_bridge
index 9f62afc..d19049a 100755 (executable)
@@ -15,10 +15,11 @@ if [ -z "$1" ]; then
        error "Usage: ${0##*/} <bridge name>" 
 fi
 
-# ensure ovs-vswitchd is running
+W=
 if ! is_switch_running; then
-       exit 0;
+       W="--no-wait"
 fi
 
-ovs-vsctl del-br $1 || true
-ovs-appctl exit 
+if ovs-vsctl br-exists "$1"; then
+       ovs-vsctl $W del-br $1
+fi