From patchwork Tue May 23 17:23:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 6904 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 4QQh4Y6whcz3wls for ; Tue, 23 May 2023 17:23:57 +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 4QQh4X3c0rz9VX; Tue, 23 May 2023 17:23:56 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4QQh4X24dSz30Kd; Tue, 23 May 2023 17:23:56 +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 4QQh4W1FHxz30JK for ; Tue, 23 May 2023 17:23: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 4QQh4W034Qz4gy; Tue, 23 May 2023 17:23:54 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1684862635; 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=A+rCdnbOTYs1MdPD98z3V7atqQNudqpTO5gHxTdAEUI=; b=wfCFUABRYoEHN1OTCgnaiRfJasoWtnLCrL2Gt5SPB8YF53SQgpGnOrtiKI1oOpb4DgaKI3 Y1s4gU3Azb2MnRBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1684862635; 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=A+rCdnbOTYs1MdPD98z3V7atqQNudqpTO5gHxTdAEUI=; b=Kyt8SUobACDv6q/VDPO9aqOuvbm5TqxzObu/DE43XTb2tviAzMcBesCfeTXcHaoCUsHuV/ QkV3tHkI7yEIq9g1uC2mmYI+AcOH23qNsUj5ebv6jT3tfHiK5atwBEHDzYm7xh8oe8yjg7 +iUk3Bp1PeV9GaiN782Kc58Uwqem08xXy9LAZ1ZX275hYLKlIG3p63CuRSn8MS9T9XcRnI 3tR9cVofdsBXkkDftkMWmKEdSIHJLrNfMLXJzfZFFtTJVlnt1g4C05K/jbdy+D1683MahG qiul320b0UntubSO+D1ZWagtgNq57zYKxE70ZYltosWDPxd3G5pYn3J8IXvGOQ== From: Jonatan Schlag To: development@lists.ipfire.org Subject: [Patch RFC 05/15] network initscripts: Remove code for old zone scheme Date: Tue, 23 May 2023 19:23:05 +0200 Message-Id: <20230523172314.7826-6-jonatan.schlag@ipfire.org> In-Reply-To: <20230523172314.7826-1-jonatan.schlag@ipfire.org> References: <20230523172314.7826-1-jonatan.schlag@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: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" A long time ago (2007) there were more config types possible then 1, 2, 3 and 4. As our installer currently only accepts config type out of the set 1, 2, 3 and 4 we do not need to check if our CONFIG_TYPE is in this set. Signed-off-by: Jonatan Schlag --- src/initscripts/system/network | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/initscripts/system/network b/src/initscripts/system/network index fda16919d..146b3fda8 100644 --- a/src/initscripts/system/network +++ b/src/initscripts/system/network @@ -61,11 +61,9 @@ case "${DO}" in # RED if [ "$red" == "1" ]; then - if [ "$CONFIG_TYPE" = "1" -o "$CONFIG_TYPE" = "2" -o "$CONFIG_TYPE" = "3" -o "$CONFIG_TYPE" = "4" ]; then - # Remove possible leftover files - rm -f /var/ipfire/red/{active,device,dial-on-demand,dns1,dns2,local-ipaddress,remote-ipaddress,resolv.conf} - [ "$AUTOCONNECT" == "off" ] || /etc/rc.d/init.d/networking/red start - fi + # Remove possible leftover files + rm -f /var/ipfire/red/{active,device,dial-on-demand,dns1,dns2,local-ipaddress,remote-ipaddress,resolv.conf} + [ "$AUTOCONNECT" == "off" ] || /etc/rc.d/init.d/networking/red start fi /etc/rc.d/init.d/static-routes start