From patchwork Tue May 23 17:23:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 6900 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 4QQh4S0cfgz3wlf for ; Tue, 23 May 2023 17:23:52 +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 4QQh4R0RbJzkG; Tue, 23 May 2023 17:23:51 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4QQh4Q72L9z2ysv; Tue, 23 May 2023 17:23:50 +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 4QQh4Q2CHKz2ySG for ; Tue, 23 May 2023 17:23:50 +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 4QQh4P6cYqz1dV; Tue, 23 May 2023 17:23:49 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1684862629; 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=75as6g0vB2ZxAH8acErRYeHiLa9b6WSHG374AjCT3Ks=; b=/DVw5hgqZ57ZqeG+VFmbtQtJVrI0p5/AGqxZg7xa39Lzt5ljFpJtV262J5cF4DOpBcYIFn cFThHSCmEN2qObCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1684862629; 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=75as6g0vB2ZxAH8acErRYeHiLa9b6WSHG374AjCT3Ks=; b=d77DEA7c/Vn0YHZZ3mHTocep1lCwAo/6kLHLJweXq6Kdd112kP2xJfzPpb9tbhUa2f80Z4 GfUUe19bzWn+tBzNY9h6aUbItvvHK8uMiYatqh3IY+iWJcJbhBQmSFgqNChghVEbCOkFRa lV14HShkH8mJf8/NwBcdMuu1TWarUcemF59C9HtIOHyV/7T5XwYzzrhc2uwtA6B317cxtP XBB/sTpeshWqpDeIgD+/IRBTcs1vpQtMfWa77wVomrnEY2H+XcEEG/3tYOpr6ywLUfweKF azYI8bvDQLXHTtySX6GwpWZiSLrDeJdo5k2yEJVMwuguWUKdfh9F2byv9kPW7w== From: Jonatan Schlag To: development@lists.ipfire.org Subject: [Patch RFC 01/15] Remove ipsec interface creation from network startup Date: Tue, 23 May 2023 19:23:01 +0200 Message-Id: <20230523172314.7826-2-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" This is called several times in the boot process. It also depends on connectivity to the internet. So there is no point in calling it here when we do not know if we even have an internet connection. It is called in the ipsecctrl programm which is called in the start and shutdown process of red ( /etc/init.d/networking/red.down/10-ipsec and /etc/init.d/networking/red.up/50-ipsec). Signed-off-by: Jonatan Schlag --- src/initscripts/system/network | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/initscripts/system/network b/src/initscripts/system/network index 9ef3fb0d8..7e457edfa 100644 --- a/src/initscripts/system/network +++ b/src/initscripts/system/network @@ -70,9 +70,6 @@ case "${DO}" in fi fi - # Create IPsec interfaces - /usr/local/bin/ipsec-interfaces - /etc/rc.d/init.d/static-routes start boot_mesg "Mounting network file systems..."