From b253b4a7ab254ff6807a2a20fdde4bfd04cd5bef Mon Sep 17 00:00:00 2001 From: Zoltan Kiss Date: Wed, 8 Jul 2015 18:42:22 +0100 Subject: ovs-ctl: fix missing "test" The test command was actually missing from these conditions. Signed-off-by: Zoltan Kiss Reviewed-by: Ciprian Barbu Reviewed-by: Santosh Shukla --- utilities/ovs-ctl.in | 4 ++-- 1 file 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 () { -- cgit v1.2.3