From patchwork Fri May 6 10:10:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Moreno X-Patchwork-Id: 1627500 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eNixStgM; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KvmYT6B0Lz9sGq for ; Fri, 6 May 2022 20:11:09 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 77B8F83F6B; Fri, 6 May 2022 10:11:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vfy23jUWV_io; Fri, 6 May 2022 10:11:06 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id B777B83ED5; Fri, 6 May 2022 10:11:05 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 92A76C0032; Fri, 6 May 2022 10:11:05 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 691E3C002D for ; Fri, 6 May 2022 10:11:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4367A4157F for ; Fri, 6 May 2022 10:11:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wPdY-sXq8-Bj for ; Fri, 6 May 2022 10:11:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [170.10.129.74]) by smtp4.osuosl.org (Postfix) with ESMTPS id D27AC414C6 for ; Fri, 6 May 2022 10:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651831861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ndHFrRHsF/e3N8+umw2fiS2iXKRJjaogUkpPoVKyLV4=; b=eNixStgMANpPpniZ7SzoNYXt8xrqj0Hz2T2uEI3eg1+N8ltzYl54nyKaHp7hpzVHyeBx7j o3jOcIDn2AI4UrWBC3QAi8rOxTWDfOJYmmjfjL0s08MO/PX8ncoQEesCzvNQV/52V8lBiI xtjs9/VVAmXuXoShTBrogFVB72FQw0g= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-615-eG43igbxO2eTPNFeQdFX0g-1; Fri, 06 May 2022 06:11:00 -0400 X-MC-Unique: eG43igbxO2eTPNFeQdFX0g-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 321463C01D9E for ; Fri, 6 May 2022 10:11:00 +0000 (UTC) Received: from amorenoz.users.ipa.redhat.com (unknown [10.39.195.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 89C3B413721; Fri, 6 May 2022 10:10:59 +0000 (UTC) From: Adrian Moreno To: dev@openvswitch.org Date: Fri, 6 May 2022 12:10:39 +0200 Message-Id: <20220506101039.3657137-1-amorenoz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=amorenoz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH] ovs-save: add bindir to PATH X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" If openvswitch is not installed in the default system's path ovs-save script will fail to find the tools it requires. Fix this by adding $bindir to the PATH. Signed-off-by: Adrian Moreno --- utilities/ovs-save | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/utilities/ovs-save b/utilities/ovs-save index fb2025b76..b3529ed78 100755 --- a/utilities/ovs-save +++ b/utilities/ovs-save @@ -20,6 +20,17 @@ case $0 in esac . "$dir0/ovs-lib" || exit 1 +for dir in "$bindir" /sbin /bin /usr/sbin /usr/bin; do + case :$PATH: in + *:$dir:*) ;; + *) + case $dir in + $bindir) PATH=$dir:$PATH ;; + *) PATH=$PATH:$dir ;; + esac + esac +done + usage() { UTIL=$(basename $0) cat <