From patchwork Thu Dec 2 12:37:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4883 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4J4b8S1kgHz3wt3 for ; Thu, 2 Dec 2021 12:38:00 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4J4b8P6FYDz3gj; Thu, 2 Dec 2021 12:37:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4J4b8P2cFsz30J0; Thu, 2 Dec 2021 12:37:57 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4J4b8M5MJ3z2xVx for ; Thu, 2 Dec 2021 12:37:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4J4b8M48NRzjr; Thu, 2 Dec 2021 12:37:55 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1638448675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sJvk7rwMiD/8uK3J2XjBARAIdf/GGo3MCycvxys9SYc=; b=lGgwENd/Yjif2OOowIG4PCs1FWuBD+cXCaTJJBVrxIRgSUKA+Is54zWuJ0E+04IEmravJq T9xulo+YKcanCWCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1638448675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sJvk7rwMiD/8uK3J2XjBARAIdf/GGo3MCycvxys9SYc=; b=tvQQxmvDJ8RwQXWdP2QcM5Wl6UsiUNT7V29QkNKWA877C2VL8vJHZtZ6/mhic95G6nXDjv NbLLuNx2nz+RYzY+wO48HT9z1W9HhbhSG65qWrUAMPXGjMBu8TtRWKIhkpq00Ifi3I/O+r iaRbtfI0HAW3AZ8btzpKGADljRfFxiC7ZQn7FoCJEIY730TBrxgAovd+S5Pm6WuRpdDC5r CImRacbzn/XVELXrN1N8oLy5bTRwHQkGU9DF2LKzvuYFMu4yNsaH2D2ASn0gSzv7v3gBx2 jGzgMSuCLWQmkVbuJXE9RG/FoR3s5SVNPOQRpcM6/T+VehCPzmi410ftSBENRA== From: Michael Tremer To: development@lists.ipfire.org Subject: [RFC PATCH 4/8] network-hotplug-bridges: Fix warning when address doesn't exist Date: Thu, 2 Dec 2021 12:37:44 +0000 Message-Id: <20211202123748.2525617-4-michael.tremer@ipfire.org> In-Reply-To: <20211202123748.2525617-1-michael.tremer@ipfire.org> References: <20211202123748.2525617-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Some devices do not have an address, which prints an error when reading it. Signed-off-by: Michael Tremer --- config/udev/network-hotplug-bridges | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/udev/network-hotplug-bridges b/config/udev/network-hotplug-bridges index bacf722ef..4b8764598 100644 --- a/config/udev/network-hotplug-bridges +++ b/config/udev/network-hotplug-bridges @@ -41,9 +41,8 @@ detect_zone() { # Try to find out if this INTERFACE is a slave of a zone local slave for slave in $(get_value "${zone}_SLAVES"); do - - #Compare if the mac address matches or if the name matches - if ([ "$(