From 612f6d49c5137ecaf407a5f8cc0a1e5ba4b4bca7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 19 Aug 2009 14:49:18 -0700 Subject: [PATCH] xenserver: Use = instead of == as operator for "test" in shell scripts. The "test" program uses =, not ==, as the test for equality. Fortunately most implementations are tolerant but it's better to follow the spec. --- xenserver/etc_init.d_vswitch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index 462c2a6f..83d84ec2 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -67,7 +67,7 @@ appctl="$VSWITCH_BASE/bin/ovs-appctl" ofctl="$VSWITCH_BASE/bin/ovs-ofctl" -if [ "$ENABLE_FAKE_PROC_NET" == "y" ]; then +if [ "$ENABLE_FAKE_PROC_NET" = "y" ]; then if [ "$ENABLE_BRCOMPAT" != "y" ]; then warning "FAKE_PROC_NET required BRCOMPAT which was disabled. Force enabling." ENABLE_BRCOMPAT="y" @@ -149,7 +149,7 @@ function start_vswitchd { daemonize="n" fi local fake_proc_net_opt="" - if [ "$ENABLE_FAKE_PROC_NET" == "y" ]; then + if [ "$ENABLE_FAKE_PROC_NET" = "y" ]; then fake_proc_net_opt="--fake-proc-net" fi if [ "$daemonize" != "y" ]; then -- 2.30.2