aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@linaro.org>2015-07-08 18:42:22 +0100
committerZoltan Kiss <zoltan.kiss@linaro.org>2015-07-09 12:06:52 +0100
commitb253b4a7ab254ff6807a2a20fdde4bfd04cd5bef (patch)
treec7fb1102769e11d5c0191a555a821890b52f88e0
parent41b405363c9c22f8f2128b71e99afea27a5ee8fd (diff)
downloadodp-ovs-odp-v0.tar.gz
ovs-ctl: fix missing "test"odp-v0
The test command was actually missing from these conditions. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> Reviewed-by: Ciprian Barbu <ciprian.barbu@enea.com> Reviewed-by: Santosh Shukla <santosh.shukla@linaro.org>
-rwxr-xr-xutilities/ovs-ctl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index 022e90ac0..aec797f41 100755
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -63,10 +63,10 @@ insert_mod_if_required () {
log_warning_msg "not removing bridge module because bridges exist ($bridges)"
return 1
fi
- action "removing bridge module" rmmod bridge || ("X$USE_ODP" == "Xyes" && return 0 || return 1)
+ action "removing bridge module" rmmod bridge || (test "X$USE_ODP" = "Xyes" && return 0 || return 1)
# Try loading openvswitch again.
- action "Inserting openvswitch module" modprobe openvswitch || ("X$USE_ODP" == "Xyes" && return 0)
+ action "Inserting openvswitch module" modprobe openvswitch || (test "X$USE_ODP" = "Xyes" && return 0)
}
ovs_vsctl () {