diff options
author | Ciprian Barbu <ciprian.barbu@linaro.org> | 2015-06-02 18:03:53 +0100 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-06-02 18:12:57 +0100 |
commit | 5faeefbbbdc376157d49be2040aadd58ff54648c (patch) | |
tree | 81b12a81f07152f48a83beed4d2ad49e792d7082 | |
parent | b69e146c8edfe8479cc789891b7e415b8d31c30c (diff) |
ovs-ctl.in: fix test of USE_ODP=yes
The "X$USE_ODP" == "Xyes" test was syntactically wrong causing errors with sh
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
-rwxr-xr-x | utilities/ovs-ctl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in index bb030a3e1..01c50cecb 100755 --- a/utilities/ovs-ctl.in +++ b/utilities/ovs-ctl.in @@ -47,7 +47,7 @@ insert_mod_if_required () { # If the bridge module is loaded, then that might be blocking # openvswitch. Try to unload it, if there are no bridges. - test -e /sys/module/bridge || "X$USE_ODP" == "Xyes" && return 0 || return 1 + test -e /sys/module/bridge || test "X$USE_ODP" = "Xyes" && return 0 || return 1 bridges=`echo /sys/class/net/*/bridge | sed 's,/sys/class/net/,,g;s,/bridge,,g'` if test "$bridges" != "*"; then log_warning_msg "not removing bridge module because bridges exist ($bridges)" |