From patchwork Mon Jul 29 14:01:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 7933 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 (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4WXg4z27HVz3wwf for ; Mon, 29 Jul 2024 14:01:23 +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 RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "E5" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4WXg4v6JQ0z1F7; Mon, 29 Jul 2024 14:01:19 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4WXg4v4qXNz340J; Mon, 29 Jul 2024 14:01:19 +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 (secp384r1) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4WXg4s1NlLz33D8 for ; Mon, 29 Jul 2024 14:01:17 +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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4WXg4r24cwzph; Mon, 29 Jul 2024 14:01:16 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1722261676; 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; bh=0AxY/g4TfzWY3VrebmUj+2Fjom6UxMjOwTjNl8nkcyQ=; b=4cbFb26Jall/kfYEgjWWTatsMqzIPeE+br6mSwUebgrijho+nALnZr7WLcKaU/Fk3qK1Pz FD3dvFvaO4m+l9DA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1722261676; 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; bh=0AxY/g4TfzWY3VrebmUj+2Fjom6UxMjOwTjNl8nkcyQ=; b=rb25V4fRYRWN5CP6WHXvOaSFjPGAsLUuVNDHha7j2p5/YVFnp2OshA01Q12utFtu4Q1gR2 fNtxh3u3V8NmOKhGaPdp7wc+lGV//aFhlHLpTIGmBDtvYTwLCksigCPMBw1sOCOOvBsarS p+RsnzYqrW5b3axoo9sYrSCRo5zshJZrighhPa5DHFMHfK2y59btPPlveMZGd7aSIvYJYU mMLpEj/P7fbChLIZNp18BaVRpvASOWYMXgEE/KKqBlmj0YcCBl1xryo+AI6ZOqe2VN6d7I E+AThAdp+QWAX/cnpzUrJiYskph5VyTKASXVD58JRhveIjVK9yaYvYMFZ/DwmA== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] network-hotplug-vlan: Fix for bug 12676 Date: Mon, 29 Jul 2024 16:01:12 +0200 Message-ID: <20240729140112.3429563-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: N4XWXAKJTYJSAF6RO7Y4AI4AP2QM7FCD X-Message-ID-Hash: N4XWXAKJTYJSAF6RO7Y4AI4AP2QM7FCD X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: - https://bugzilla.ipfire.org/show_bug.cgi?id=12676#c3 Suggested-by: Michael Tremer Signed-off-by: Adolf Belka --- config/udev/network-hotplug-vlan | 42 +++++++++++++++----------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/config/udev/network-hotplug-vlan b/config/udev/network-hotplug-vlan index 178e1a67b..07ae5a61c 100644 --- a/config/udev/network-hotplug-vlan +++ b/config/udev/network-hotplug-vlan @@ -1,25 +1,23 @@ #!/bin/bash -############################################################################ -# # -# This file is part of the IPFire Firewall. # -# # -# IPFire is free software; you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation; either version 2 of the License, or # -# (at your option) any later version. # -# # -# IPFire is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with IPFire; if not, write to the Free Software # -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# # -# Copyright (C) 2015 IPFire Team # -# # -############################################################################ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2015-2024 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### [ -n "${INTERFACE}" ] || exit 2 @@ -62,7 +60,7 @@ for interface in green0 red0 blue0 orange0; do # If the parent device (MAC or name) does not match the interface that # has just come up, we will go on for the next one. - [ "${PARENT_DEV}" = "${INTERFACE}" ] || [ "${PARENT_DEV}" = "$(